Microsoft
Software
Hardware
Network
Question : sql: issue checking if character is in number range
hi
i am writing a sql query, and one part i check
case when(h.status in (1,2,3,4,5,6,7,8))
all of these status's have a numerical value except status Q, hence i get
Conversion failed when converting the varchar value 'Q' to data type int.
can i use a convert here ? and if so how would i best implement it
Answer : sql: issue checking if character is in number range
Something like this perhaps:
case when(h.status in ('1', '2', '3', '4', '5', '6', '7', '8'))
Random Solutions
How do I Recover/ Repair a "Messed Up" Main Switchboard
How do I set up Exchange 2007 Activesync to work with PDAs that can sync to Exchange Server
Remote Web Workplace does not work outside the LAN
Using VBA to transfer CSV in AC07
How can "duplicate key" errors be handled easily?
How to change @@servername?
How to check open ports in remote computers?
Outlook 2007 outgoing email stuck over 1mb
Exporting Access Report as PDF with a unique name
Pivot Table: Export to a CSV file