Viewing 15 posts - 57,616 through 57,630 (of 59,066 total)
This should do it... if you don't already have a TALLY table, here's how to make one...
--===== Create and populate the Tally table on the fly
SELECT TOP 11000...
September 18, 2006 at 12:12 am
Do you need ISO weeks by any chance?
September 17, 2006 at 10:17 pm
P.s Nice trick with the TOP 0 thing... most folks use WHERE 1=0 to do the same thing. TOP 0 seems more obvious and I like it.
September 17, 2006 at 1:09 pm
First, SELECT/INTO does not lock system tables during a SELECT/INTO with no explicit transaction... (at least, none that I can detect)...
Test setup:
First, build yourself a nice medium sized test...
September 17, 2006 at 1:00 pm
You should never set the database to grow by a percentage especially if the size of a database starts out small. It takes 73 growth spurts to grow a 1...
September 16, 2006 at 8:15 pm
Sure... I'll send you the shrunken head of a Developer that I didn't like ![]()
September 16, 2006 at 8:05 am
Just curious... did my post help at all?
September 15, 2006 at 10:25 pm
Yep... write to a UNC instead of a file/path...
The server must have write privs, as well.
September 15, 2006 at 10:18 pm
Job Requirements:
September 15, 2006 at 9:06 pm
Here's how to do it... you will need to replace "dbname" with the actual name of the database. You will need to do like wise with "servername". Once you've tested...
September 15, 2006 at 8:29 pm
Why on Earth would you put the creation of a temp table in an explicit transaction? And, so far as exclusively locking the system tables when you use SELECT/INTO to...
September 15, 2006 at 5:56 pm
You bet, Remi... we actually put the requirement in our "SQL Coding Standards" document so the Developers are made keenly aware of the problem. Since we do code reviews on...
September 15, 2006 at 5:51 pm
Viewing 15 posts - 57,616 through 57,630 (of 59,066 total)