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
Microsoft Front Page Forms ...
SBS2008 - DCOM was unable to communicate with the computer <computer name> using any of the configured protocols.
What is the best way in FoxPro to move or copy a file and preserve the original filename case?
vlookup between workbooks - one cell
Adding a second Storage Group to Exchange 2000
Outlook 2003 folder list view archive folder error
Can you change the verbage at the Top of a SSRS report
Could not find part of the path
How do I turn off the Office warning message?
Clean CRLF from text file being imported into SQL2000