Viewing 15 posts - 43,036 through 43,050 (of 49,566 total)
Jonathan Kehayias (11/21/2008)
how to write badly performing code which I have always wondered how to do. 😀
😛
Congrats on the award. I intend to take the app for a...
November 22, 2008 at 12:27 am
Lynn Pettis (11/22/2008)
Ahh geez, Gail, you're taking the fun out of it! :P;)
Oh, I'm sorry. I'll play dumb next thread... 😉
11pm Seattle time and I'm checking the forums. still...
November 22, 2008 at 12:25 am
venkat (11/21/2008)
Hi,Do you know I'm a Sr. DBA. Some times I am full bizzi thats why I'm sending forum response for finding easiest and fastest way.
A senior DBA who...
November 22, 2008 at 12:15 am
The transaction log is not there for auditing purposes. If you're wanting to audit data changes, look at triggers. DML triggers to capture data changes, DDL triggers to capture schema...
November 22, 2008 at 12:03 am
I don't have time right now to try and rewrite your entirequery, especially not without table schemas or sample data. Look at the sample update statement I posted above and...
November 21, 2008 at 11:57 pm
Jeff Moden (11/21/2008)
Another favorite are those that ask things like "which would be faster" and they post the code for both... talk about "lazy". :hehe:
Yeah, but at least those are...
November 21, 2008 at 11:56 pm
does that login have a mapped user in that database/
November 21, 2008 at 3:09 pm
The different settings may cause problems. Make the settings in management studio the same as in the app and see what behaviour you get.
November 21, 2008 at 3:09 pm
Don't have time to rewrite it now.
Can you try moving the subquery with the sum into the from clause and treating it as a derived table? I know it's not...
November 21, 2008 at 3:08 pm
There are articles on my blog on parameter sniffing.
Were all the parameter values the same? All the options (ansi_nulls, etc) the same?
November 21, 2008 at 1:58 pm
Don't shrink. Even with the notruncate, you will badly fragment your indexes. There's little gain in moving the free space to the end of the file.
There will be no change...
November 21, 2008 at 1:38 pm
Parameter sniffing?
Did you run the proc from management studio, or did you run the contents?
Can you post the proc?
November 21, 2008 at 1:27 pm
Anything in the event log? Anything in the error log?
November 21, 2008 at 1:24 pm
Right. Now we can talk about this.
Consider moving the subqueries into the from clause of the update. I can't rewrite the entire things now, I'm in a presentation.
So, the general...
November 21, 2008 at 11:33 am
Can you post the exec plan please?
There are places where this does happen and isn't a problem. The estimated rows is the estimated rows affected per execution of the operator...
November 21, 2008 at 11:19 am
Viewing 15 posts - 43,036 through 43,050 (of 49,566 total)