Sorting nvarchar column SQL Server 2005 -
when sorting nvarchar column in sql has numeric value, sql server returns bad sorting , don't know why!
is there particular way sql server sorts varchar columns having numeric values?
thanks
this has fail-safe take account non numerical values, , place them @ end of result set.
select [nvarcharcolumn] [table] order cast(isnull(nullif(isnumeric([nvarcharcolumn]),0),2147483647) int)
Comments
Post a Comment