Viewing 15 posts - 4,591 through 4,605 (of 15,381 total)
Here is the article from Jason Strate that Grant was mentioning.
http://www.jasonstrate.com/2012/06/the-side-effect-of-nolock/%5B/url%5D
And here are a couple of others ones that are also quite good.
http://sqlblogcasts.com/blogs/tonyrogerson/archive/2006/11/10/1280.aspx
http://blogs.msdn.com/b/davidlean/archive/2009/04/06/sql-server-nolock-hint-other-poor-ideas.aspx
June 5, 2014 at 12:04 pm
Koen Verbeeck (6/5/2014)
Sean Lange (6/5/2014)
I ran this through a code formatter...Are you sure? 😀
haha. it seems I forgot the closing [ code] tag. Will fix that now. 😀
June 5, 2014 at 11:07 am
The biggest issue by far of that hint is not reading in a row that is being inserted/updated and getting an incorrect value. Most people think that is the issue....
June 5, 2014 at 11:06 am
Hi and welcome to the forums. In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form...
June 5, 2014 at 10:58 am
I ran this through a code formatter...the columns "names" are so painful that no amount of formatting is going to make this a lot better. Add to that the sheer...
June 5, 2014 at 10:53 am
OK all this nonsense about how painful NOLOCK can be has prompted me to write this again. I know I have posted this on this site a few other times....
June 5, 2014 at 10:39 am
kwoznica (6/4/2014)
That's money!! I'll run it on my actual table in the morning. This way isn't that expensive either when compared to the windowing function. Thanks for your input....
June 5, 2014 at 10:11 am
I was hopeful when I saw that you had posted some details. However, what you posted scares me to death. In addition to Chris' comment about not having sample data...
June 5, 2014 at 10:08 am
sachin.sakpal2009 26397 (6/5/2014)
NULL<Product>
<Scan_Objects$1893>
Back up Administration Server data
Device Control
Download updates to the repository
File Anti-Virus
Find vulnerabilities and application updates
Protection
Update
Virus Scan
Web Anti-Virus
Web Control
What is this? It seems you need help with something but...
June 5, 2014 at 9:43 am
helal.mobasher 13209 (6/5/2014)
Thank you all...worked great.
Glad it worked for you. The question is do you understand what it is doing?
June 5, 2014 at 9:40 am
Kind of a unique requirement but not too bad. Just using the case suggestion from Koen. I also removed the LTRIM and RTRIM functions wrapping your constant -00 as that...
June 4, 2014 at 3:28 pm
Hrhb.mail (6/4/2014)
rn=1
What is it?
That is the alias he used for ROW_NUMBER.
Which values of NewId, CatId and NewDate do you want when there are multiples?
Related NewTitle with that fields[/quote]
But your output...
June 4, 2014 at 3:21 pm
Looks like Luis coded what I was thinking. 😀
June 4, 2014 at 3:06 pm
Hrhb.mail (6/4/2014)
What I need is like:
Select Distinct (NewTitle) From News
But I need NewId, CatId and NewDate fields value, too.
Which values of NewId, CatId and NewDate do you want when there...
June 4, 2014 at 3:05 pm
eccentricDBA (6/4/2014)
Sean Lange (6/4/2014)
JAZZ Master (6/4/2014)
Ed Wagner (6/4/2014)
Sean Lange (6/4/2014)
SQLRNNR (6/4/2014)
crookj (6/4/2014)
Sean Lange (6/4/2014)
SQLRNNR (6/4/2014)
Sean Lange (6/4/2014)
crookj (6/4/2014)
whereisSQL? (6/4/2014)
Sean Lange (6/4/2014)
SQLRNNR (6/4/2014)
Ed Wagner (6/3/2014)
jasona.work (6/3/2014)
Ed Wagner (6/3/2014)
Sean Lange (6/3/2014)
crookj (6/3/2014)
jasona.work...
June 4, 2014 at 2:55 pm
Viewing 15 posts - 4,591 through 4,605 (of 15,381 total)