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
Memo Fields start getting truncated
Proxy Settings
Run program after install -- VB.net (2005) Compact Framework
How do i develop a chat application without using timer in c#?
Change domain of XenApp farm
copying os off 1 hard drive to another using windows 7 and USB
Drive Letter on Boot Partition .... Made a Mistake
kerberos client received a KRB_AP_ERR_MODIFIED error
Urgent System.UnauthorizedAccessE<wbr />xception
Windows Home Vista fails to startup - Black screen with mouse pointer