Hi
I'm getting this very irritating message when trying to print a uniqueidentifier field for debug info. Here is my proposed string:
PRINT 'AuditID = ' + CAST(@AuditID AS varchar)
I've tried using an intermediary variable, but I just get the same error there:
SET @strPrint = ('AuditContactID = ' + CAST(@AuditContactID AS varchar))
PRINT @strPrint
I can work around it by simply using 2 PRINT statements, but I want to know what's causing this problem... Thanks in advance!
I'm getting this very irritating message when trying to print a uniqueidentifier field for debug info. Here is my proposed string:
PRINT 'AuditID = ' + CAST(@AuditID AS varchar)
I've tried using an intermediary variable, but I just get the same error there:
SET @strPrint = ('AuditContactID = ' + CAST(@AuditContactID AS varchar))
PRINT @strPrint
I can work around it by simply using 2 PRINT statements, but I want to know what's causing this problem... Thanks in advance!