Viewing 15 posts - 52,456 through 52,470 (of 59,064 total)
Schnurdle (2/18/2008)
I always create the temp table first, then INSERT into it to avoid such issues.
e.g.
--Create...
February 18, 2008 at 11:13 am
Sure thing, CA... thanks for asking...
http://www.sqlservercentral.com/articles/Advanced+Querying/61716/
... and thanks for the kudo on formatting. I do it mostly so I can read it 😀
February 18, 2008 at 10:49 am
What are you using to measure the times with? Typically, I'll use SET STATISTICS TIME ON... the CPU time is the actual time it took sans any display. ...
February 18, 2008 at 10:11 am
Heh... if you don't care so much about a trigger providing a friendly error, you can always just have the table lock itself up when you create it...
CREATE TABLE YourTable...
February 18, 2008 at 10:06 am
Thanks for the feedback, Julie... hmm... maybe I should publish it here, as well.
February 18, 2008 at 9:14 am
What an awesome article... I've seen quite a few on the same topic, but this one "nutshells" the whole 9 yards very nicely. It's definitely a keeper.
Thanks for...
February 18, 2008 at 8:59 am
Actually, the help system in SQL Server is pretty good. Comes free with SQL Server. It's called "Books Online".
February 18, 2008 at 12:23 am
Yes... it does have a disadvantage similar to many other programs that import data... the date must be formatted consistently from row to row including the header, if there is...
February 17, 2008 at 11:06 pm
ebuss_2004 (2/17/2008)
February 17, 2008 at 10:17 pm
I had to make a bigger table to get some timing stats.... also means I had to convert both scripts to use a Tally table and make a large enough...
February 17, 2008 at 6:20 pm
I kinda thought that, as well. Thanks, Matt. It'll be interesting to see what you come up with...
February 17, 2008 at 12:27 pm
atarafder (2/17/2008)
Jeff, the requirement in my case is not to have contiguous ID's but to be 100% sure that there are no overlap of Id's between the two transactions.
...
February 17, 2008 at 12:23 pm
Thanks for the feedback and glad it suits your needs... now you know why I kept asking for more detail...
Folks, this is a perfect example of why I wrote the...
February 17, 2008 at 10:59 am
I don't know the differences between a Blackberry and a SmartPhone because I haven't had to carry either.
I with Johan, though... if you're gonna put a ball and chain on...
February 17, 2008 at 10:44 am
Never mind... I just had another cup of coffee...
Here's the untested answer...
--===== If the temp table exists, drop it
IF OBJECT_ID('TempDB..#tt_Mum','U') IS NOT NULL
...
February 17, 2008 at 10:31 am
Viewing 15 posts - 52,456 through 52,470 (of 59,064 total)