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
generate a list of numbers to a file
Event with souce SidebySide when server starts
How do I publish a VS 2005 web application using msbuild form the command line?
Need some help with MENUITEMINFO Structure (500 points grade A)
How to save textbox items in XML
last month and week data set
Microsoft Word 2007 Cell Calculation
How can I print using a Clipper (DOS) application under Windows 7
can i use right([ClientName] to get the last part of a string in a Microsoft Access query if i don't know how long the last part is?
VB 2010 - Connection to MS Access