Viewing 15 posts - 12,391 through 12,405 (of 15,381 total)
Can you post what you tried? Not sure what you mean by not the proper result.
April 17, 2012 at 7:54 am
The ROW_NUMBER example provided by Eugene is exactly what you need.
April 17, 2012 at 7:49 am
If you didn't have this update in a transaction it will be a little challenging. You can either restore to a point in time or restore to a point before...
April 17, 2012 at 7:47 am
Are these updates slow? Not sure if you are just unsure of your approach of if you are having performance problems. You have several where clauses that are not sargable.
Instead...
April 16, 2012 at 2:57 pm
Thanks for the ddl and sample data. Very refreshing to see somebody post a question making it so easy to answer.
This works on your sample data.
select replace(REPLACE(F1, 'FOLDERS(', ''), ')',...
April 16, 2012 at 2:51 pm
Lynn Pettis (4/16/2012)
1. Get out a blank piece of paper.
2. Put your name and today's date at the...
April 16, 2012 at 2:22 pm
Well figure that out and get back to us. We can help you recreate a formula in sql. We will not be able to help you figure out what that...
April 16, 2012 at 2:17 pm
See you were super close.
Try this:
declare @cmd1 varchar(5000)
set @cmd1 = 'select run_date = getdate(), @@servername as server_name,
database_name = ''?'',
a.name object_name, b.name as index_name, a.type_desc, a.create_date, a.modify_date,
b.type_desc...
April 16, 2012 at 2:11 pm
hbtkp (4/16/2012)
but this is how i am getting my final data in report.
so based on how they calculate , i need to do implement...
April 16, 2012 at 2:06 pm
Can you post what you have so far? My guess is you are closer than you think.
April 16, 2012 at 2:02 pm
How about a simple explanation about what you want??? What is a cumulative? Do you have a column with that information in it? I hope your communication skills in real...
April 16, 2012 at 1:58 pm
Dynamic sql will run in its own thread, your variable outside of the dynamic sql. You must declare it INSIDE the dynamic portion.
April 16, 2012 at 11:47 am
Brandie Tarvin (4/16/2012)
WayneS (4/16/2012)
Brandie Tarvin (4/16/2012)
2) How many parameters...
April 16, 2012 at 11:33 am
hbtkp (4/16/2012)
OK SORRY MAX date its working.help me with cumulative calculation
Help us help by posting details.
Help us help by posting details.
Help us help by posting details.
Help us help by...
April 16, 2012 at 11:26 am
Viewing 15 posts - 12,391 through 12,405 (of 15,381 total)