Forum Replies Created

Viewing 15 posts - 2,386 through 2,400 (of 4,080 total)

  • RE: ONLINE index rebuild adds one extra byte to non-clustered indexes

    So we have several possibilities at least:

    (1) The presence of the byte is itself a flag of some sort.

    After all it DOES tell you whether an...

    __________________________________________________

    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: Are the posted questions getting worse?

    Neither are coconuts.

    __________________________________________________

    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: Calling a SP in a SQL Statement

    Another alternative is to rewrite your stored procedure as a table-valued function.

    select * from dbo.tfn_YourFunction(parm1,parm2,parm3)

    __________________________________________________

    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: Prloblem using EXIST in Select Statement

    EXISTS is true whenever any rows would be returned by the query. You should pair it with a subquery that has a where clause.

    IF EXISTS (select 1...

    __________________________________________________

    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: Indexes

    It can and will do just that when it decides that is the least amount of work. But remember, whenever you use an index and have to get...

    __________________________________________________

    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: Procedure to compare 2 SIMILAR tables

    Nice technique, Paul.

    __________________________________________________

    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: Procedure to compare 2 SIMILAR tables

    Thanks so much for posting up sample data!! Applause!!

    select E1.id,E1.Fname as Fname1, E2.Fname as Fname2, E1.Lname as Lname1, e2.Lname as Lname2

    from Employee1 E1

    join Employee2 E2 on E2.id =...

    __________________________________________________

    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: SubQuery returns multiple row in a where clause that combines with other parameters.

    "Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, , >= .... "

    You subquery is returning a set of values. ...

    __________________________________________________

    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: ONLINE index rebuild adds one extra byte to non-clustered indexes

    MY thread.. ?!? Just because I don't accept an execution plan for a table with 7 rows of data?

    For the luvva small, fluffy bunnies....

    __________________________________________________

    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: Are the posted questions getting worse?

    SOM 😛

    "For the love of small, fluffy bunnies?"

    We're even on coffee for the day, Paul.

    __________________________________________________

    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: Are the posted questions getting worse?

    the most amazingly cross-purposed debate ever

    Where did this take place?

    __________________________________________________

    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: SubQuery returns multiple row in a where clause that combines with other parameters.

    Without commenting on the wisdom(?) of your approach, I will say that lists of values are tested using IN, not equals (=). Another method would...

    __________________________________________________

    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: ONLINE index rebuild adds one extra byte to non-clustered indexes

    Paul, does it add a new byte EVERY time? If you rebuild the same index 5 times, does it increase by 5 bytes? Or...

    __________________________________________________

    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: Are the posted questions getting worse?

    I assume this has to be IPoAC / PPTP - compliant?

    __________________________________________________

    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 to find previous date

    Use DATEADD, with a negative number of days.

    select getdate(),DATEADD(day,-3,getdate())

    __________________________________________________

    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 - 2,386 through 2,400 (of 4,080 total)