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
Forwarding a notification of a new Email Recived exchange
can i say in excel in c1, if a1 = 1 then b1 = something else, without changing the formula in b1?
MSSQL Enterprise Manager on Windows 7 when I only have a SQL Server 2000 disk?
IBM X3200 with LSI RAID, slow disk performance in Hyper-V virtual machine ?
Exchange 2010: 530 5.7.1 Client was not authenticated
Capture arrow keystrokes in a TForm
Received error "ActiveX component can't create object" while calling WinFax.SDKSend in VBA
Outlook 2007 connecting to Exchange 2010. Cannot connect to email folders.
Access IDE - Key Shortcuts for Bookmark?
Opening Organization chart with open office