Viewing 15 posts - 4,456 through 4,470 (of 5,394 total)
First of all, thank you for you reply, Paul.
Very informative and precise, as usual.
I forgot to mention that I ran these tests on my dev server (8 dual core...
April 13, 2010 at 6:38 am
I know I will probably get good answers from other people on the forums, but I would really appreciate reading your thoughts on this one.
What irritates me is that I...
April 13, 2010 at 4:24 am
I don't have SQL2000 at hand, so I can't try, but here's an alternative way to solve it that could be faster or slower. Give it a try.
SELECT Balance...
April 13, 2010 at 1:46 am
This should do the trick:
SELECT Balance = ( SELECT TOP 1
...
April 13, 2010 at 1:42 am
Replace the code in your catch block with something that returns useful information about the error:
BEGIN CATCH
DECLARE @ErrorMessage NVARCHAR(4000)
DECLARE @ErrorSeverity INT
...
April 12, 2010 at 2:47 am
It depends. Compare the execution plans with and without date condition, you'll find out for sure.
If unsure, you could also try the performance of the two, changing UPDATE to SELECT.
If...
April 9, 2010 at 10:47 am
The two UPDATEs produce the exact same exec plan.
Just a few points:
1) NOLOCK has no effect on the table to update
2) NOLOCK can easily generate inconsistent data, get rid of...
April 9, 2010 at 10:30 am
Paul White NZ (4/9/2010)
And, in general, the order that values are assigned to the variable is unpredictable, or at least not guaranteed.
Really? I use it to build strings to use...
April 9, 2010 at 8:58 am
By default, triggers don't fire on a bulk operation. There's a switch to turn on to make triggers fire, but I can't find it on the Wizard. Maybe there's in...
April 9, 2010 at 8:19 am
leonardo_gt (4/9/2010)
... in a periodo of time...
The above query returns data since last service/system restart, but it can't be limited to a specific date range.
Maybe there's some other DMV to...
April 9, 2010 at 8:09 am
You can look at the index usage stats in sys.dm_db_index_usage_stats, but you can only detect index updates, you can't determine if the write operation comes from an INSERT, UPDATE or...
April 9, 2010 at 8:05 am
BrainDonor (4/9/2010)
Why do so few people understand the basic principles behind backups?DBCC Timewarp, anyone?
BrainDonor
And why keep people giving crap advice on backups?
I'm so glad SQL2008 doesn't support that "feature" any...
April 9, 2010 at 4:44 am
Thanks for clarifying Wayne. So, it works the same as permanent tables: I was fearing that a different behaviour could apply.
I wrote that because I use indexes on temp tables...
April 9, 2010 at 4:11 am
Viewing 15 posts - 4,456 through 4,470 (of 5,394 total)