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
500 points: In SSIS, how to pass parameters into Data Flow Task
Linking to Word document from Access Table or Query
How to run a MS Access Query?
Why the log-in time on our domain takes too long to log using my LAN port
Error exporting to PDF when report language is set to French
Visual Foxpro 7.0 training
run macro on all worksheets in workbook
Scan all machines to find which all machines has local admin rights
Why I play mp3 in Office PowerPoint 2003 had an error of MCI Error ?
UNION vs DISTINCT