Microsoft
Software
Hardware
Network
Question : SQL Server 2005 Casting behaviour
select cast('*' as int)
GO
--- Conversion failed when converting the varchar value '*' to data type int.
GO
select cast('+' as int)
GO
-- This works fine
-- Result- 0
GO
select cast('-' as int)
GO
-- Works Fine
-- Result 0
GO
select cast('/' as int)
GO
-- Conversion failed when converting the varchar value '/' to data type int.
GO
I am unable to understand why few airthmetic operator working fine but few not...
any one could you please explain this behavior.. I am working to fix one production issue....
Answer : SQL Server 2005 Casting behaviour
You aren't casting the addition and subtraction operators, you are casting the positive and negative notation and it just makes the assumption that the numeric part is 0. +0 = + = 0
Random Solutions
error SQL3126N when loading data from local file to remote DB2 instance
Insert Script from the command prompt
Probably an easy question, but how can I set the domain name for use with iis on my lan?
Setting Folder Permission in Windows XP - VB Script
Vmware and HP msa2324sa dc + DL360 (2) configuration considerations
Server 2008 R2 DC File Permissions
SQL Server 2008 setup failure
Access to toher User's Inboxes
MAGENTO ENTERPRISE: Need to make static link in category menu (always display throughout layers)
restore from DB?