Microsoft
Software
Hardware
Network
Question : Reading in and set value in stored procedure
I have a parameter passed in to a stored procedure. I need to check the first 4 characters if they are = to 'abcd' I need to set another variable to 'defg' and vice versa I tried this with a case statement but couldn't get it too run. Any ideas?
Answer : Reading in and set value in stored procedure
SELECT @var = CASE WHEN LEFT(@param, 4) = 'abcd' THEN 'defg' ELSE @param END
Random Solutions
upgrading and moving a sql server express 2005 database to a sql server standard
how can i pay electricity bill online using hdfc netbanking ??
How to specify different languages for different users using Windows 2008 Teminal Server?
how to capture out parameter from storedProcedure in java
Is it possible to encrypt an email message using PHP?
MS Excel 2007 & PDF - Exporting to PDF takes long hours!
Apache webserver Linux and Gzip
Extract / Create thumbnails (1st page) for office documents using PHP on Windows or Linux/Mac server
Install IIS with a vbs script.If supporting files needed pick from a predefined path.
DNS Search List appending to all nebios / dns names