Forum Replies Created

Viewing 15 posts - 58,426 through 58,440 (of 59,048 total)

  • RE: update another table

    Jennifer,

    Contrary to what many have posted above, there is absolutely nothing wrong, not even the thing about the aliases,  with your code.  It is very likely a simple matter of...

  • RE: Joining on datetimes but ignoring the time part

    As you are aware, performing just about any calculation on an indexed column will negate any chance of using the index.  Try this... it's simple and makes for nasty fast...

  • RE: Re-order sequence numbers

    First, using a cursor  or a WHILE loop  just isn't an option for me... I just gotta do...

  • RE: Cursors? Variable Tables and Temp Tables?

    John and Jeffrey,

    Thank you both for taking the time to read the post and understand it   Don't be too disappointed if you can't...

  • RE: copying from one database to another - but only new data?

    Then, I'm thinking that someone didn't design the database correctly.  It's hard for me to believe that anyone would make a permanent table that has over 520 some odd...

  • RE: Set-based query

    "SELECT INTO" is actually a setting called "SELECT INTO/BULK COPY" and it does NOT disable the ability to use the SELECT/INTO syntax.  It just means that it will be logged. ...

  • RE: Cursors? Variable Tables and Temp Tables?

    Jeffrey,

    First, I say "you" a lot in the following write-up... I don't mean you personally and hope you don't take it that way (personally).  Your questions are outstanding and instead...

  • RE: Set-based query

    I believe the reason why the Numbers or Tally table solution is so much faster is two-fold.

    1. As Jesper pointed out, the Numbers table will be indexed on the "N"...
  • RE: Script or Stored Procedure for db maintenance

    If your going to post things like this, you might also take the time to post the reasons

  • RE: Cursors? Variable Tables and Temp Tables?

    Jeffrey,

    As you are probably aware (you ARE an experienced CIO), any RBAR (a "Modenism" for "Row By Agonizing Row", pronounced "ree-bar") is ALWAYS slower than an equivalent set-based operation.  Cursors...

  • RE: Date field comparision - without time running slow

    What is the datatype of the column you call "Activity Date"?  I have the sneaky suspicion that it's not a DateTime column and need to know what datatype it is...

  • RE: tempTable w/ identity column

    SELECT IDENTITY(INT,1,1) AS RowNum,*

        INTO #yourtemptable

        FROM #yourpermtable

    Don't forget to add a primary key for speed and accuracy...

  • RE: The ARRAY In SQL Server 2000

    The author of the article wrote: "but using temporary table you are increasing disk activity since TV (Table Variable) is created in memory as opposed to Temp tables (created in...

  • RE: Eliminating Cursors

    Ummmm.... wanna tell me what version of SQL Server there was that didn't have cursors?

  • RE: Eliminating Cursors

    Mike C,

    Exactly right and great call.  In fact, there's documented proof that table variables do use TempDB at the following web site and that there are some serious DISADVANTAGES to...

Viewing 15 posts - 58,426 through 58,440 (of 59,048 total)