Viewing 15 posts - 2,956 through 2,970 (of 5,588 total)
Amit Pandey DeBugSQL (10/10/2010)
Brilliant stuff, analyzing it now.Cheers.
Thanks.
Analyzing the code, or the results of it?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 10, 2010 at 1:35 pm
Craig Farrell (10/6/2010)
WayneS (10/6/2010)
Craig Farrell (10/6/2010)
Answer: No and no.This code, as is, will not deadlock independently. There's no transaction calls.
What is the serverwide setting for isolation?
Craig, did you consider...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 10, 2010 at 1:34 pm
Paul, Jeff, et all...
I want to ensure that I understand the safety check as posted by Paul at http://www.sqlservercentral.com/Forums/FindPost980118.aspx, and modified by Tom at http://www.sqlservercentral.com/Forums/FindPost981258.aspx.
The resultant (combined) code would be:WITH...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 10, 2010 at 12:57 pm
Amit,
Here is my freshly updated code to show what is going on with this deadlock. (For any keeping track, this is now my most recent deadlock shredding code.)
-- see http://msdn.microsoft.com/en-us/library/ms188246.aspx
--...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 10, 2010 at 12:23 pm
As usual, Jeff has an excellent solution.
I did notice one, well, issue with it. It is assuming that the control numbers will have a prefix, followed by 9 zero-padded digits....
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 10, 2010 at 9:01 am
GilaMonster (10/10/2010)
Well that's my T-SQL Tuesday post done and scheduled. Took me far longer than I had planned to write.
Well, you did say you were debunking three myths. I bet...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 10, 2010 at 8:48 am
The deadlock graph will be in an XML format... do you have that available?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 9, 2010 at 7:29 am
WITH CTE AS
(
Select distinct
Name = Column2 ,
[Year] = Column20 ,
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 9, 2010 at 7:26 am
You showed us your desired output... now how about some sample data to see what we need to do to generate the output?
Please see the first two links in my...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 9, 2010 at 7:18 am
Okay Craig and Craig-4 - I've been off all day, just getting back to look at this. It seems like things are going good. Is there anything else that is...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 8, 2010 at 8:29 pm
Sounds good to me. Maybe a forum of "Other Databases", that could include Oracle, Access, MySql, etc.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 8, 2010 at 9:59 am
That's essentially it. Uninstall. Install different edition.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 8, 2010 at 9:58 am
You're very close:
select SUM(CASE WHEN calendar_year=2009 THEN amount1 ELSE 0 END) as amount_1,
SUM(CASE WHEN calendar_year=2010 THEN amount2 ELSE 0 END) as amount_2,
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 8, 2010 at 5:20 am
Take a look at the articles linked to in my signature under Cross-Tabs and Pivots, Part 1 and Part 2.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 8, 2010 at 5:19 am
madler-797963 (10/7/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 8, 2010 at 5:16 am
Viewing 15 posts - 2,956 through 2,970 (of 5,588 total)