Viewing 15 posts - 61 through 75 (of 103 total)
Ahh....good catch.
I was Assuming that the function used in the SELECT depended on the Row (as in a correlated subQuery).
Yes it very much depends on the function, what it's doing,...
March 4, 2008 at 7:59 am
function use in the SELECT List and or on the JOIN can also cause severe problems (maybe even worse then in the WHERE Clause).
by placing a Function in the select,...
March 4, 2008 at 6:40 am
I agree with you Brandie,
The Point is, I guess, is to try hard to reduce or limit the use of functions in a WHERE clause when and where you can.
If...
February 29, 2008 at 12:26 pm
Ruben,
I'd build a @StartDate and an @EndDate Variable
Build them using your two parameters of Month and Year
Start date = 1st of Month
EndDate = last day of month
then use the Between...
February 29, 2008 at 11:20 am
yes agreed.
I would try to break the habit of using isNull() and other functions in your where clauses unless you are very certain you can consistently get the index Seeks.
definately...
February 28, 2008 at 4:17 pm
Jeremy,
Excellent work.
it's important to prove assertions in articles like this.
all too often, folks just read stuff and believe it as the gospel.
Thanks for the kudos and for a great discussion...
February 28, 2008 at 12:28 pm
Thanks for the Response...
Again, I'd have to see the exact DB to be able to reproduce the results.
All of our tables have clustered indexes and stats are updated.
I can pretty...
February 28, 2008 at 10:13 am
hmmm.....On our db, these resulted in scans 100% of the time and removing the functions (isNull Usually) fixed the issue 100% of the time.
I'd have to see specific examples in...
February 28, 2008 at 8:06 am
Thanks very much....
Yes, these are very common mistakes.
We had Hundreds of these occurances throughout our DB and the performance suffered immensely.
Took a few weeks to clean these all up and...
February 28, 2008 at 8:00 am
Andy,
Great Article, and very timely.
I just completed my MBA last night (literally) and then saw this article today....
I agree with what many have said. If you really want to move...
February 20, 2008 at 4:55 pm
that's a good idea.
also, trace her queries and see if you can add some indexes to help her out.
my guess is that this person is querying the same stuff most...
February 6, 2008 at 8:05 am
spend lots of time on microsoft's msdn site for sql server
http://msdn2.microsoft.com/en-us/sqlserver/default.aspx
Greg J.
February 6, 2008 at 8:00 am
well....technically the reporting DBs never get smoked. they just get set to "Loading"
even while a DB is "loading" it's still usable. the client performance will just suffer as indexes are...
January 23, 2008 at 7:11 pm
Good point.
that was another option we pursued but it did require down time (albeit short).
GAJ
January 23, 2008 at 7:08 pm
Sreejith,
thanks for the post.
Glad you enjoyed the article.
I'll be posting another article in the next couple of weeks.
keep your eyes out for it....
🙂
GAJ
January 23, 2008 at 2:30 pm
Viewing 15 posts - 61 through 75 (of 103 total)