Viewing 15 posts - 21,466 through 21,480 (of 22,195 total)
Two options, write a function that takes the comma delimited list and turns into a table or pass the list in as XML and use OPENQUERY or XQuery to join...
November 28, 2007 at 4:40 am
It's most likely the server, but I'd gather some information to back yourself up. Use profiler to get a days worth of data, hopefully including a timeout or two. Go...
November 28, 2007 at 4:37 am
Have you run Profiler to identify the poor performing processes? If not, I'd do that right away. You say it's a third party vendor. Once you've identified badly behaved procedures,...
November 28, 2007 at 4:33 am
Gail gave it to you
SET NOEXEC ON
Put that in front of the query with a semi-colon seperating it from your code. This works against Adventureworks:
SET NOEXEC ON;
SELECT * FROM...
November 27, 2007 at 5:14 am
Just a quick clarification, 2008 isn't supposed to ship until Q2 2008. Personally, I wish they'd wait until Q4, 2009.
November 27, 2007 at 4:58 am
If you want to parse it from your client, use the code that Gail provided from there.
November 27, 2007 at 4:55 am
First try running DBCC CHECKDB(). From the sounds of things, that'll probably fix it. If not, you've got work to do. Can you restore it from backup? If not, you...
November 27, 2007 at 4:54 am
And wrap it all in a transaction.
Also, make sure you include the old data values in the update statement. That way, if the second call manages to get the same...
November 27, 2007 at 4:46 am
It's already in the script, but it doesn't look right to my (very untrained regarding PIVOT/UNPIVOT) eye.
November 26, 2007 at 11:14 am
Vika (11/26/2007)
"And it doesn't happen very often but when DB is hit hardest. What is deadlock, what happens during deadlock?
A deadlock is when two processes are in contention for the...
November 26, 2007 at 9:36 am
I think you mis-pasted the results there. You should see a session_id. I know you can identify the blocked session id. From that, you look at the wait_type column to...
November 26, 2007 at 9:32 am
Good one. I hadn't thought about looking at the cache.
November 26, 2007 at 8:25 am
You're getting wait states, or contention in your system. For a quick & dirty look at what's happening, query the DMV sys.dm_os_waiting_tasks while the suspended status is going on. That'll...
November 26, 2007 at 8:23 am
Is it "as unvpt"?
I'm not very acquainted at all with the PIVOT & UNPIVOT operators, so that's a guess.
November 26, 2007 at 8:18 am
You can automate the use of SQL Profiler (also called Trace) either by using the correct stored procedures (sp_trace_create is the first of many, look 'em up in the BOL)...
November 26, 2007 at 7:49 am
Viewing 15 posts - 21,466 through 21,480 (of 22,195 total)