Forum Replies Created

Viewing 15 posts - 1,591 through 1,605 (of 4,080 total)

  • RE: Adding Header and Trailer

    Be advised that UNION ALL will only help you if the header/trailer rows have identical layouts. The whole header/trailer idea is totally alien to the way SQL...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: values from table for use in procedure

    Dynamic SQL is likely your best bet. You can use however many values are in your table to generate parts of your WHERE clause. ...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Subroutines in TSQL

    Just some peanuts from my section of the gallery. I'm not sure how I vote yet.

    I think we all agree that it's a good thing to be able...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: how much time it will take to get the records from a large table

    Given that the question is a beginner's question, I think its safe to assume that reading execution plans isn't something Neliii is prepared to do yet.

    Nelliii, please read Jeff's article...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Can we create an userdefined function in a database with readonly permission

    If you only have READONLY permissions to a database, you can't create objects in the DB. In the future, talk to your DBA about your needs before you...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Views Vs Stored Procs

    It's highly possible that the interview question was simply designed to draw out your knowledge of views and stored procedures. If I was conducting an interview and...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Views Vs Stored Procs

    Sometimes you can make code literally hundreds and sometimes thousands of times faster simply by dividing the code up and maybe storing an interim answer in a Temp table. You...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Views Vs Stored Procs

    Views are more flexible, because you can query them for subsets of rows and columns just like tables. On the other hand, I've seen disasters where developers used...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Query Tuning~CPU Usage

    afaik? = "As far as I know?"

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Today's Random Word!

    thin question authors

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Today's Random Word!

    certificated

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Need help/advice in improving pruning an adjacency tree

    Just a thought. You still have to do the second step where you update the rows that matched the keep condition. Read up on the MERGE...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: variable Issue

    Like table names in a SELECT statement, the audit specification name probably can't be a variable.

    Try doing this with dynamic SQL instead.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Function call on Insert Query

    I assume your function is returning an integer, so I will ask why you can't define the incrementing column in the destination table as an IDENTITY column. I...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Update records with similar values

    You're welcome, Squidder.

    Please take a moment to look at how I set up the problem. When you take the time to post...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

Viewing 15 posts - 1,591 through 1,605 (of 4,080 total)