Viewing 15 posts - 496 through 510 (of 691 total)
PATINDEX is a function, whereas LIKE is a predicate.
November 9, 2004 at 3:24 pm
The DELETE FROM syntax is pretty odd, and I'm not sure of all of the side effects. Can you use the ANSI Standard DELETE syntax instead:
Delete tblMMStanTestScores
Where TS.TestShortName =...
November 9, 2004 at 1:45 pm
Whigger,
I have an idea, this may be similar to an OSQL problem I've seen before; can you see if output from DBCC USEROPTIONS is the same in QA as it...
November 9, 2004 at 12:18 pm
Russell,
sp_executesql does not wrap an additional transaction, AFAIK:
exec sp_executesql N'select @@trancount'
-- returns: 0
November 9, 2004 at 10:17 am
Jane,
Unfortunately, the answer is: It depends
I recommend you read this article by Erland Sommarskog, which covers this topic and related issues in...
November 9, 2004 at 7:59 am
There are a few things you can do.
A) I highly recommend indexing the table! It is imperative to query performance. You just need to be careful...
November 9, 2004 at 7:56 am
Quite the contrary, Frank. I really appreciate it. Thank you!
November 9, 2004 at 7:17 am
Niall,
When I run load tests, I usually start the monitor for Average Disk Queue Length, Total Processor Time, Total Memory Utilization, Page Faults, and then sometimes add a few others...
November 9, 2004 at 7:15 am
Whigger,
Does this include sp_executesql from QA?
This really makes no sense...
Are the execution plans the same?
November 9, 2004 at 7:11 am
FYI, I posted my own test results here, along with an invitation for someone to show me how to prove that PATINDEX will, indeed, outperform LIKE:
http://sqljunkies.com/WebLog/amachanic/archive/2004/11/08/4993.aspx
November 8, 2004 at 3:09 pm
Or...
UPDATE YourTable
SET YourColumn = STUFF(YourColumn, CHARINDEX(YourColumn, 'mkpdc'), 5, 'SRV01')
November 8, 2004 at 12:52 pm
UPDATE YourTable
SET YourColumn = STUFF(YourColumn, 3, 5, 'SRV01')
WHERE YourColumn LIKE '\\mkpdc%'
November 8, 2004 at 12:50 pm
I run load tests all the time (it's a major part of my job) and durations are generally fairly consistent -- with some decay as simultaneous connections increase -- until...
November 8, 2004 at 10:35 am
Niall,
Are you looking at other performance counters, e.g. processor time and disk IO, during your profiling? Perhaps you're maxing something out?
November 8, 2004 at 10:15 am
Actually, both are cached. Look in syscacheobjects and you'll see both executable and compiled plans after either sp_executesql or ad hoc SQL.
Whigger, can you post some code showing us...
November 8, 2004 at 10:13 am
Viewing 15 posts - 496 through 510 (of 691 total)