Viewing 15 posts - 13,891 through 13,905 (of 22,213 total)
Just add an alias:
SELECT MAX( RowNumber ) FROM
(
SELECT
ROW_NUMBER() OVER (ORDER BY MSG_DTM_LASTSTATUSTIME DESC) as RowNumber
FROM
Message_MSG msg with(nolock)
) AS x
November 23, 2010 at 5:13 am
Can you use PowerShell instead? If so, I've got a good script I can point you to.
November 23, 2010 at 5:06 am
First thing I'd do is get the data model. Do you have a data modelling tool like ERStudio or ER/Win? If not, you'll have to use the built in model...
November 23, 2010 at 5:04 am
Thanks for the article Sarvesh. You may want to spend a little more time on the next one, just nail down why these things occur. As you showed, it's not...
November 23, 2010 at 4:23 am
DavidL (11/22/2010)
November 23, 2010 at 4:17 am
Paul White NZ (11/23/2010)
GilaMonster (11/23/2010)
http://www.sqlservercentral.com/Forums/Topic1024140-360-1.aspx
I suspect the developer who said those can't be optimised doesn't know the meaning of the word. Dynamic SQL and lots of...
November 23, 2010 at 4:15 am
Some other potential optimizations. You have a whole bunch of DISTINCT operations. These are aggregates and when you see them everywhere in a query it's usually indicative of poor programming...
November 23, 2010 at 4:13 am
pavan_srirangam (11/22/2010)
November 22, 2010 at 6:53 pm
Jeff Moden (11/22/2010)
I just don't ever want to be that "productive". Down-time is very important to me.
What is this "down-time" of which you speak?
November 22, 2010 at 6:51 pm
Craig Farrell (11/22/2010)
November 22, 2010 at 6:46 pm
Ah, well, you might be in trouble then. 1/3 to 1/2 of the table being deleted is likely to lead to table locks.
You might want to look at partitiioned...
November 22, 2010 at 1:35 pm
3 million rows out of how many?
And again, an index alone won't necessarily do much for you, and could hurt you. What's the clustered index?
November 22, 2010 at 1:26 pm
A lot of it also depends on your indexing architecture. Are you deleting based on the clustered index and, will those deletes take place in a different part of the...
November 22, 2010 at 12:44 pm
That script isn't set up to run on 2000. You'll have to gather the metrics other ways.
November 22, 2010 at 11:02 am
Chris Morris-439714 (11/22/2010)
CirquedeSQLeil (11/22/2010)
Chris Morris-439714 (11/22/2010)
Wishing Jack C a speedy recovery and some quality time for recuperation.Get well soon, mate.
Did I miss something more than the burnout?
Our DBA caught some...
November 22, 2010 at 10:03 am
Viewing 15 posts - 13,891 through 13,905 (of 22,213 total)