Viewing 15 posts - 346 through 360 (of 508 total)
Mike,
The sequence table mentioned by the previous poster works very well in most cases. I work quite a bit with a large Point of Sale application that uses this...
October 21, 2010 at 5:50 pm
I agree with Jeff on this one - run it in steps as a script to find the area of the problem. That being said, there are only a...
October 14, 2010 at 3:22 pm
I would think the easiest way to do this is add a day to the date and compare the month. Something like:
SELECT * FROM #tmp
WHERE DATEPART(month, LockEndDate) = DATEPART(month,...
October 14, 2010 at 1:36 pm
I'm kind of with John on this one. If re-compiling takes that long for just 100 or even 1000 iterations, then this must be a monster of a procedure....
October 13, 2010 at 12:32 pm
Paul,
That's what I get for going through the forum at 2 AM. Ooops!
Todd Fifield
October 12, 2010 at 1:22 pm
Victor,
Just change your date comparison from:
AND t2.DataYear < = t1.DataYear
to
AND t2.DataYear BEWEEN t1.DataYear - 5 And T1.DataYear
Todd Fifield
October 9, 2010 at 12:33 pm
I think a better solution would be to create a temp table to hold the contents of the update statement and then use the OUTPUT clause in your update statement....
October 9, 2010 at 12:11 pm
James,
I've written a couple of articles here on using calendar tables to simplify code and better performance. I use them extensively when applicable. One of the keys to...
October 9, 2010 at 11:54 am
I had a client switch over to SSD's for most of the storage on the instance. The first database moved to SSD was TempDB. We didn't see much...
October 7, 2010 at 9:09 pm
SELECT INTO runs much faster than CREATE TABLE/INSERT INTO in most cases - especially if the created table has constraints or indexes, which will have to be maintained during the...
September 23, 2010 at 1:39 pm
To Reply to Kevin on why the UDF rather the in line code:
I recently used this type of iTVF to build a keyword list from item descriptions from order detail...
September 17, 2010 at 5:33 pm
Please post a use case and an example of the expected output.
Todd Fifield
September 3, 2010 at 12:29 pm
I'm not a big OpenQuery or OpenRowSet guy and I haven't used SSIS all that much. I have, however, done a fair amount of BULK INSERT type code from...
August 6, 2010 at 11:51 am
If you will have to do this sort of thing more than once, I highly recommend setting up a monthly calendar table to make coding much easier and increase performance.
Here...
August 5, 2010 at 11:58 am
I have an aversion to directly manipulating data in my database from another source such as a text file.
I would use Jeff's suggestion and bulk insert from the text file...
July 30, 2010 at 12:05 pm
Viewing 15 posts - 346 through 360 (of 508 total)