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 runtime themes on XP Embedded
Windows XP drops network connection freezes because of offline files
MS Access Query Error when executed from VBA with DMAX() function
Techincal windows based questions to be answered by windows gurus?will you guys?
Attach-Detach vs. Backup-Restore database ?
write a IF_And_Then, OR statement correctly
VS 2008 Hangs (slow) on Open Website when searching through Mapped Network Drives
Cannot login to Windows 2000 Server from Windows 7 Pro
Using msoControlEdit to enter search parameter?
Is there an equivilant of "XP Mode" for Terminal Server 2008 R2?