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
How to add Exchange tabs in ADUC on Vista 64 bit.
Tried to reboot xp machine remotely but it got stuck, any way to force a reboot via command line?
STOP: 0x0000007E (0xC0000420, xxxxxx) acpi.sys - address 83AB9717
Need SQL Syntax help to make my qry more efficient.
What is wrong with this query? Counting rows in the db.
sql server 2005 datetime min
Filter form via dropdown menu
I am used to Eclipse and want F3 to 'go to definition' in the VB.NET 2005 studio
Event Log - Schannel Event ID: 36888
Self-join a single table that includes 'parent-child' relation.