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
Tivoli Storage Manager Backup Archive Client App Crash DSM.EXE after installing on Windows Server 2008 R2 64 bit
I need help with an ODBC Connection with Access 2007
IntoPath-How to populate a non-repeating field with a repeating field value on a condition
Exchange 2007 booking a conference room
Using a date varible in where clause of SQL
Windows 2000 Server - Administrator ID - Invalid security ID Structure
Redirect to page based on credentials
How to identify the correct globalization for date types ?
Not recognizing next years dates in Dataset Search
Windows 7 remote desktop causes black screen and am forced to cold boot