July 31, 2015 at 8:54 am
Cadavre (7/31/2015)
Brandie Tarvin (7/30/2015)
Why oh why oh why do people insist on using WITH (NOLOCK) instead of doing things like setting transaction isolation levels or fixing indexes to resolve performance issues?Work thing. I've been trying to stamp out WITH (NOLOCK) use and now because things "aren't working" one group is trying to throw it back in.
ARGH!
Well, this is my battle for the week.
EDIT: Seriously, can anyone give me a real reason why WITH (NOLOCK) might be functionally necessary for production code?
In our continuous integration server (TeamCity), one of the configurations installs our database. It then fires a "Validation Tool" that I wrote against the installed database and produces a report. One of the tests is to check for NOLOCK, if it is found then it fails the build and sets off the siren of shame[/url] and sends an e-mail to the person that caused the issue. I thoroughly recommend doing something similar for your own development environment.
Hrm. Interesting idea. We have a lot of old procs that still need cleaned up, though.
July 31, 2015 at 8:58 am
Cadavre (7/31/2015)
Brandie Tarvin (7/30/2015)
Why oh why oh why do people insist on using WITH (NOLOCK) instead of doing things like setting transaction isolation levels or fixing indexes to resolve performance issues?Work thing. I've been trying to stamp out WITH (NOLOCK) use and now because things "aren't working" one group is trying to throw it back in.
ARGH!
Well, this is my battle for the week.
EDIT: Seriously, can anyone give me a real reason why WITH (NOLOCK) might be functionally necessary for production code?
In our continuous integration server (TeamCity), one of the configurations installs our database. It then fires a "Validation Tool" that I wrote against the installed database and produces a report. One of the tests is to check for NOLOCK, if it is found then it fails the build and sets off the siren of shame[/url] and sends an e-mail to the person that caused the issue. I thoroughly recommend doing something similar for your own development environment.
I like the idea of the siren. We used a howling monkey.
And in other news ... you changed your profile pic.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
July 31, 2015 at 9:00 am
rodjkidd (7/31/2015)
Oops. Obviously need more coffee...Posted this to the wrong thread!
So I am now wondering what a Gummy Bear surgical operation is...
Google: gummy bear plastic surgery
or
gummy bear procedure
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
July 31, 2015 at 9:37 am
SQLRNNR (7/31/2015)
rodjkidd (7/31/2015)
Oops. Obviously need more coffee...Posted this to the wrong thread!
So I am now wondering what a Gummy Bear surgical operation is...
Google: gummy bear plastic surgery
or
Links added
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 31, 2015 at 9:40 am
Looks like Luis is answering Oracle questions now.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
July 31, 2015 at 9:44 am
WayneS (7/31/2015)
SQLRNNR (7/31/2015)
rodjkidd (7/31/2015)
Oops. Obviously need more coffee...Posted this to the wrong thread!
So I am now wondering what a Gummy Bear surgical operation is...
Google: gummy bear plastic surgery
or
Links added
Troublemaker:w00t:
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
July 31, 2015 at 9:51 am
Cadavre (7/31/2015)
Brandie Tarvin (7/30/2015)
Why oh why oh why do people insist on using WITH (NOLOCK) instead of doing things like setting transaction isolation levels or fixing indexes to resolve performance issues?Work thing. I've been trying to stamp out WITH (NOLOCK) use and now because things "aren't working" one group is trying to throw it back in.
ARGH!
Well, this is my battle for the week.
EDIT: Seriously, can anyone give me a real reason why WITH (NOLOCK) might be functionally necessary for production code?
In our continuous integration server (TeamCity), one of the configurations installs our database. It then fires a "Validation Tool" that I wrote against the installed database and produces a report. One of the tests is to check for NOLOCK, if it is found then it fails the build and sets off the siren of shame[/url] and sends an e-mail to the person that caused the issue. I thoroughly recommend doing something similar for your own development environment.
Not an expert but I think you could do this with Policy Based Management. It would be nice if this check got added in the Code Analysis rules in SSDT database projects as well.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 31, 2015 at 9:51 am
WayneS (7/31/2015)
Looks like Luis is answering Oracle questions now.
That wasn't the only attempt on that day. Here's a completely lost Oracle user.
But hey, as long as I can help.
July 31, 2015 at 9:51 am
Love it when the boss comes out and says you get to leave at 2pm! (we are heading into a long weekend here for context)
July 31, 2015 at 9:58 am
Luis Cazares (7/31/2015)
WayneS (7/31/2015)
Looks like Luis is answering Oracle questions now.That wasn't the only attempt on that day. Here's a completely lost Oracle user.
But hey, as long as I can help.
I had to walk away from that last one. I expected that one to go one forever.
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
July 31, 2015 at 10:32 am
Ladies and gentlemen, take my advice - pull down your pants and slide on the ice.
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
July 31, 2015 at 12:01 pm
Alvin Ramard (7/31/2015)
Ladies and gentlemen, take my advice - pull down your pants and slide on the ice.
screeeeeeeeeeeeeeeeeeeeeeeeeeech
What?
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
July 31, 2015 at 12:10 pm
Alvin Ramard (7/31/2015)
Luis Cazares (7/31/2015)
WayneS (7/31/2015)
Looks like Luis is answering Oracle questions now.That wasn't the only attempt on that day. Here's a completely lost Oracle user.
But hey, as long as I can help.
I had to walk away from that last one. I expected that one to go one forever.
Here's another one.... I noticed the USING, instead of WITH for the cte.
http://www.sqlservercentral.com/Forums/Topic1706970-3077-1.aspx
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
July 31, 2015 at 12:18 pm
SQLRNNR (7/31/2015)
Alvin Ramard (7/31/2015)
Ladies and gentlemen, take my advice - pull down your pants and slide on the ice.screeeeeeeeeeeeeeeeeeeeeeeeeeech
What?
That would be much louder and butted with "il culo rosso":-D
😎
July 31, 2015 at 12:19 pm
SQLRNNR (7/31/2015)
Alvin Ramard (7/31/2015)
Ladies and gentlemen, take my advice - pull down your pants and slide on the ice.screeeeeeeeeeeeeeeeeeeeeeeeeeech
What?
You're not familiar with the saying?
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
Viewing 15 posts - 49,786 through 49,800 (of 66,712 total)
You must be logged in to reply to this topic. Login to reply