Viewing 15 posts - 106 through 120 (of 139 total)
Try the below script.
WITH CTE_First(Num_key, Name) AS
(
SELECT 1, Name FROM abc_test WHERE num_key = 9
UNION ALL
SELECT 2, Name FROM abc_test WHERE num_key = 7
UNION ALL
SELECT 3, Name FROM abc_test WHERE...
April 1, 2011 at 7:31 am
Praveen, Did you use Mike's solution? Is that what you were looiking for?
April 1, 2011 at 3:54 am
You can check the characters ASCII by using ASC function and if the value is not between to English chars ASCIIs you can replace it with required values. 65 to...
April 1, 2011 at 3:48 am
There might syntax errors in the below code as at present SQL is not installed in my system. But just try the below script after fixing the syntax errors.
WITH CTE_First(Num_key,...
April 1, 2011 at 3:37 am
Ok. So, My doubt is what should be the num_key value of these 3 names? 'RIBI', 'GB', and 'TRF'
April 1, 2011 at 3:08 am
How about table parameter? If you can fill the months in a table and pass it as a table parameter, you can give a WHERE condition IN (SELECT month from...
April 1, 2011 at 3:01 am
But Kiran, Num_key values are different in your expected result and original table value. Do you want to replace it with 1, 2, and 3?
April 1, 2011 at 2:49 am
Oh. Sorry. I read the below in one link. So, It should work online.
"Setting the optimize for ad hoc workloads to 1 affects only new plans; plans that are already...
April 1, 2011 at 2:36 am
Hope the below link helps. There is a good explanation about it.
April 1, 2011 at 2:05 am
xp_cmdshell is another extended stored procedure. 'Dir' is the place you have to put the parameter for that sp. You can use DOS commands like DIR, CD, DEL, COPY, etc......
April 1, 2011 at 1:48 am
When there is an exam, we need to dig through little more to cover them. Obviously that will improve your skills as you know things are much deeply. Go for...
March 31, 2011 at 12:28 pm
Can you try this?
SELECT 'filename_' + REPLACE(CONVERT(NVARCHAR(20), GETDATE(), 102), '.', '-')
Regards,
Shaiju CK
March 31, 2011 at 12:10 pm
Are you getting any error? Also there is no code like sp_executesql or EXECUTE command to get the data from database to @WSPrice1 variable.
Regards,
Shaiju CK
March 31, 2011 at 10:27 am
Atleast they should come up with some screens which they are going to develop. If that is also not there, you might required to chase Business Analysts and Developers to...
March 31, 2011 at 10:00 am
Viewing 15 posts - 106 through 120 (of 139 total)