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 |
|
excelthoughts
Starting Member
5 Posts |
Posted - 2007-11-30 : 00:03:20
|
| Hi,Can anyone help as to how to get this to work? dbo.parseInt is a Function which sorts Alpha Numerically. If I removed the top part of the UNION, the Procedure works fine.ALTER PROCEDURE dbo.ByJobNoAlphaNumeric asSELECT 0 AS JobID, '<All Jobs>' AS JobNoUNION SELECT JobID, JobNo FROM tblORDER BY dbo.parseInt(JobNo)RegardsAndrew |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-11-30 : 00:06:22
|
[code]SELECT JobID, JobNoFROM( SELECT 0 AS JobID, '<ALL Jobs>' AS JobNo UNION SELECT JobID, JobNo FROM tbl) jORDER BY dbo.parseInt(JobNo)[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
excelthoughts
Starting Member
5 Posts |
Posted - 2007-11-30 : 00:17:27
|
| Thanks for your quick reply |
 |
|
|
|
|
|