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
Need to update Group Policy for an OU
OWA 2007 Password Changes
Services fail to start
Trying to resolve event ID 24583
Managing multiple Email Addresses
Could not find stored procedure 'dbo.aspnet_CheckSchemaVer<wbr />sion'.
SQL Query that needs a helping hand
RAID 1 or RAID 10 for windows 2003 server with SQL 2000 server
Microsoft Access Module - Append table to another
Can I create an array of objects?