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
Using DSum and Date Parameters in a Query Together
Automatic Email of report in HTML in ASP/oracle
Meeting request change delayed (4.4.7) when sending to more than one outside recipient
Excel 2007 Column Chart Width
RunCommand AcCmdSaveRecord
Microsoft Exchange hardware requirement
Backup Script for Oracle database backup
Tooltips in .Net treeview
Sharing GALS between 2 disjoint exchange organisations
BitmapData pointer in C#