Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where clause with integer
Message
 
 
To
19/10/2011 11:11:38
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01526883
Message ID:
01526892
Views:
47
This message has been marked as a message which has helped to the initial question of the thread.
>>It implicity converts '1' to the higher precedence which is integer.
>>
>>Take a look at this
>>Data Type Precedence (Transact-SQL)
>>
>>Integer has higher precedence than char.
>
>Interesting, thanks

You would not believe it, but I just had to deal with a very similar problem myself - fixing bug in my code.

I wrote about it here
http://beyondrelational.com/justlearned/posts/748/be-careful-with-implicit-conversions.aspx
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform