Viewing 15 posts - 58,426 through 58,440 (of 59,048 total)
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...
January 25, 2006 at 7:07 am
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...
January 25, 2006 at 6:54 am
First, using a cursor
or a WHILE loop
just isn't an option for me... I just gotta do...
January 24, 2006 at 8:06 pm
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...
January 24, 2006 at 5:12 pm
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...
January 23, 2006 at 10:24 pm
"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. ...
January 23, 2006 at 10:20 pm
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...
January 23, 2006 at 9:57 pm
I believe the reason why the Numbers or Tally table solution is so much faster is two-fold.
January 23, 2006 at 6:18 am
If your going to post things like this, you might also take the time to post the reasons ![]()
January 23, 2006 at 5:34 am
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...
January 22, 2006 at 12:52 am
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...
January 21, 2006 at 11:57 pm
SELECT IDENTITY(INT,1,1) AS RowNum,*
INTO #yourtemptable
FROM #yourpermtable
Don't forget to add a primary key for speed and accuracy...
January 21, 2006 at 11:47 pm
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...
January 21, 2006 at 8:10 pm
Ummmm.... wanna tell me what version of SQL Server there was that didn't have cursors?
January 20, 2006 at 6:02 pm
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...
January 19, 2006 at 7:45 am
Viewing 15 posts - 58,426 through 58,440 (of 59,048 total)