Microsoft
Software
Hardware
Network
Question : Casting local variable int as varchar to concatenate into another string using transact-sql
I'm trying to add a local variable of type int to a string to display to the user but I keep getting a null value.
Code Snippet:
1:
set @denial_reason = 'Patient does not meet income criteria: ' + CAST(@poverty_level as varchar)
Open in New Window
Select All
Answer : Casting local variable int as varchar to concatenate into another string using transact-sql
Try this
set @denial_reason = 'Patient does not meet income criteria: ' + CAST(ISNULL(@poverty_level
,'') as varchar)
Random Solutions
Excel to Word Paste Special Object formating problem
How can I correct a make table query in Access 2003?
Memory Dump (WinDbg Provided)
MS Chart Control Legend Items Truncated
The LinkMasterFields property setting has produced this error: "The object doesn't contain the Automation object 'tbluserSpec. "
A non-SYN packet was dropped because it was sent by a source that does not have an established connection with the ISA Server computer.
Way to change a SQL 2005 key
Difference between ADP, MDB & SQL
SSIS DYNamic excel connection string in runtime
I got a FPT file corrupted