Viewing 15 posts - 51,661 through 51,675 (of 59,072 total)
In other words, Dragon3486... messy code is hard to troubleshoot. 95% of all such simple syntactical problems can easily be avoided altogether if you format your code in an...
March 18, 2008 at 11:55 am
More likely, since you said you had the window open for days, the data in the tables the view references changed. Doesn't take a lot... if your execution plan...
March 18, 2008 at 11:50 am
And, the "re-used" execution plan for 1 set of parameters might be absolutely terrible with another set or sometimes a thing called "parameter sniffing" kicks in and the whole server...
March 18, 2008 at 11:46 am
If, what you really mean, is that you don't want anyone to be able to "steal" your code, then you must check all of your code into some safe place...
March 18, 2008 at 11:40 am
Both are nothing more than "in-line" views... views can use indexes just like any query can. Same goes for CTE's and Derived tables... "Have Index, Will Compute". 😀
March 18, 2008 at 11:20 am
I've had a great many similar experiences especially with poor performance due to Table Variable usage. If you add in the fact that TempTables persist in Query Analyzer whereas...
March 18, 2008 at 10:58 am
If you really want technical... scroll back up to the early stages of this thread and look at the URL I recommended... :hehe:
March 18, 2008 at 10:25 am
srienstr (3/18/2008)
I'll stick to indexed temp tables for self-links then. (The base table used in this process has around 300k rows)
If the underlying tables are correctly indexed, the CTE...
March 18, 2008 at 10:22 am
Tao Klerks (3/18/2008)
I don't think I agree about the clarity of using CTEs for derived tables, but I guess that might be...
March 18, 2008 at 8:37 am
To me, CTE's have the advantage of Derived Tables because you can reference them many times in the same query at different levels in the query whereas a Derived table...
March 18, 2008 at 8:24 am
Gosh... ya gotta wonder, though... seems like the VarDecimal datatype option has a pretty limited application... you'd think they'd have spent more time on something important like getting SUM() OVER()...
March 18, 2008 at 8:08 am
Sorry Gus... I actually didn't mean it that way (better)... I just meant it's different and you don't need the CTE if you don't want it. They both run...
March 18, 2008 at 8:03 am
Matt Miller (3/18/2008)
I just came across this -
http://weblogs.sqlteam.com/mladenp/archive/2006/11/10/19546.aspx
It does seem...
March 18, 2008 at 7:48 am
Viewing 15 posts - 51,661 through 51,675 (of 59,072 total)