Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Query - Replacing Values

$
0
0

I'm very confused by this error statement that's being printed out. Errors out saying:

Text
Recording_File_Path,Call_Date,Customer_Phone_Number,First_Names,Last_Names,Department,Caller_ID Msg 245, Level 16, State 1, Line 5 Conversion failed when converting the nvarchar value '' to data type bit. 

which is one of the values I need, but its one of many. Also too, I've been trying to write it to replace the value with a department name in order to better distinguish between the two types of calls. My question is, Where is it converting my value CLFD.flagValue to a data type bit and how do I stop this so I can keep it printed out as a sting value? Any and all help would be appreciated!

SQL
DECLARE@yearVARCHAR(4),@monthVARCHAR(2),@dayVARCHAR(2);SET@year='2016'SET@month='10'SET@day='10'SELECTCL.recordingFileAS...

Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>