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.
Author |
Topic |
Leigh79
Starting Member
28 Posts |
Posted - 2009-05-05 : 05:09:13
|
Hi GuysI have a field which stores House Numbers/Names as varchar.When I order the field it displays the info as:1101214162202224...I would prefer it to order numerically i.e.:1210121416...Is there anyway for me to do this, the field has to be a text field as some of the information is stored as text i.e. 14 AILSA WAY, BROOK HOUSE etc.Any help would be appreciatedThanksLeigh |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-05-05 : 05:34:03
|
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/07/21/ordering-interger-values-stored-in-varchar-column.aspxMadhivananFailing to plan is Planning to fail |
|
|
Leigh79
Starting Member
28 Posts |
Posted - 2009-05-05 : 06:28:48
|
Thanks MadhivananMethod 5 worked a treat! |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-05-05 : 06:43:24
|
quote: Originally posted by Leigh79 Thanks MadhivananMethod 5 worked a treat!
Thanks. You are welcome MadhivananFailing to plan is Planning to fail |
|
|
|
|
|