Mega Code Archive

 
Categories / MSSQL Tutorial / Data Convert Functions
 

Conversion failed when converting the varchar value abc to data type int

4>  SELECT CONVERT(INT, 'abc') 5> GO Msg 245, Level 16, State 1, Server J\SQLEXPRESS, Line 4 Conversion failed when converting the varchar value 'abc' to data type int. 1> PRINT 'This will print!' 2> GO This will print! 1>