Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 convert int error

Author  Topic 

shanmugaraj
Posting Yak Master

219 Posts

Posted - 2006-03-28 : 09:14:27

when i try
SELECT SSN FROM MEMBERS ORDER BY CONVERT(int, SSN)
Error ::

syntax error converting the varchar value 'asdf' to a column of data type int.

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-03-28 : 09:16:58
See my reply in other topic

Order by len(SSN), SSN

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -