Forum Replies Created

Viewing 15 posts - 51,661 through 51,675 (of 59,072 total)

  • RE: Query Problem

    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...

  • RE: Select from view differs from its definition

    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...

  • RE: stored procedure Vs select statement

    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...

  • RE: How can i prevent the client to open or see the sql dataBase file (mdf) out of the application

    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...

  • RE: joins

    swathichilukuri85 (3/18/2008)


    thank u jeff

    can u provide me the script

    The others are correct... We can't write a script for your tables because you haven't posted them or any sample data....

  • RE: Common Table Expressions

    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". 😀

  • RE: Are temp tables better than table variables

    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...

  • RE: Are temp tables better than table variables

    If you really want technical... scroll back up to the early stages of this thread and look at the URL I recommended... :hehe:

  • RE: Common Table Expressions

    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...

  • RE: Vardecimal

    But I want my Easter Eggs NOW!!! Where's my porkchops? 😛

  • RE: Common Table Expressions

    Tao Klerks (3/18/2008)


    Thanks GSquared - this makes sense to me.

    I don't think I agree about the clarity of using CTEs for derived tables, but I guess that might be...

  • RE: Common Table Expressions

    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...

  • RE: Vardecimal

    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()...

  • RE: Replace non numeric characters in string

    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...

  • RE: Vardecimal

    Matt Miller (3/18/2008)


    Wow - I didn't even read the question correctly. Thanks Jeff for the wake-up there (pinging the caffeine IV).

    I just came across this -

    http://weblogs.sqlteam.com/mladenp/archive/2006/11/10/19546.aspx

    It does seem...

Viewing 15 posts - 51,661 through 51,675 (of 59,072 total)