Viewing 15 posts - 16 through 30 (of 42 total)
Unfortunately I don't have the table def with me at home, but the idea is to simply update field1 to be a new rownumber based on the count of rows.
If...
May 4, 2011 at 4:52 pm
LutzM (5/4/2011)
raistlinx (5/4/2011)
Yes that is what I understood the problem to be from the analyst who gave it to me. I knew it had to be a common problem. Is...
May 4, 2011 at 4:19 pm
ChrisM@home (5/4/2011)
SELECT field1 = (RIGHT(('00000000' + convert(nvarchar(8), ((SELECT count(*) + 1 FROM table1 o WHERE t.field2 > o. field2 and t.field3 = 'xxx')))),8))
FROM table1 t
WHERE...
May 4, 2011 at 3:54 pm
WayneS (11/3/2010)
1. If the service account running sql server has the "Perform volume maintenance tasks" right, creating even a 1TB db will...
November 3, 2010 at 4:10 pm
Craig Farrell (11/3/2010) Sorry, reading back that was a bit rougher sounding than the joke I meant it to be. Thank you for taking that in good humor anyway....
November 3, 2010 at 3:27 pm
Jeff Moden (11/3/2010)
raistlinx (11/3/2010)
The OP asked for a way to easily clear out the tables.
Nope. Go back and look. The OP asked how to drop all the...
November 3, 2010 at 3:13 pm
Craig Farrell (11/3/2010)Raid... slower? Than what?
For writing? Slower than a single drive.
November 3, 2010 at 3:02 pm
Leo.Miller (11/3/2010)
November 3, 2010 at 2:56 pm
Leo.Miller (11/3/2010)
raistlinx (11/3/2010)
Because of the time it takes to create a new clean DB. Often times in developement you may want to clean out the tables quickly to have a...
November 3, 2010 at 2:25 pm
WayneS (11/3/2010)
laddu4700 (11/3/2010)
Is there an easy way to drop all tables in a database from management studio. I am using SQL 2005
My question is: Why would you want to do...
November 3, 2010 at 12:57 pm
SELECT 'DROP TABLE ' + name FROM sys.tables
and run the result
November 3, 2010 at 11:43 am
I wrote this for a recent project, does this help?
SELECT 'IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = '+ name + ') ' + char(13)
+ 'CREATE...
November 1, 2010 at 10:45 am
You could have a look here: http://msdn.microsoft.com/en-us/library/ms176029.aspx
October 25, 2010 at 10:29 am
Also, if 'remote admin connections' is not set you cannot connect remotely and must do it at the server physically.
October 24, 2010 at 9:44 am
Viewing 15 posts - 16 through 30 (of 42 total)