Viewing 15 posts - 2,776 through 2,790 (of 4,745 total)
TRACEY-320982 (3/21/2010)
Right now I have the followingThere are approx 133095 rows per day.
DELETE TOP(100000)
FROM tablename WHERE
startdate >= '2009-12-17' and
startdate <= '2009-12-17'
with these values you are still doing almost...
---------------------------------------------------------------------
March 21, 2010 at 9:54 am
Paul White NZ (3/21/2010)
george sibbald (3/21/2010)
...its up to you which code you want to use in this instance, both do the same thing.
Not quite the same, at least not exactly....
---------------------------------------------------------------------
March 21, 2010 at 5:48 am
Tracey, the code I gave you will commit every 10000 rows because thats the value set for rowcount. As your log is in simple mode it will automatically truncate that...
---------------------------------------------------------------------
March 21, 2010 at 5:17 am
do you mean using 10GB of tran log?
do this as a crawler delete, something like this, so tran logs can be backed up
Declare @num int
Set @num = 1 ...
---------------------------------------------------------------------
March 20, 2010 at 4:32 pm
Then I would have thought you would prefer to still use SSMS when the server is in single user mode? Its got to be easier than sqlcmd especially if typing...
---------------------------------------------------------------------
March 20, 2010 at 10:39 am
if you had not set the 'open new query window' as your startup mode option up front before restarting SQL in single user mode then yes object explorer would gave...
---------------------------------------------------------------------
March 20, 2010 at 10:21 am
it sounds like you want to restore your master database for which you have to start the instance in single user mode, not set the database to single user. see...
---------------------------------------------------------------------
March 20, 2010 at 8:18 am
CirquedeSQLeil (3/19/2010)
Paul White NZ (3/19/2010)
CirquedeSQLeil (3/19/2010)
I actually disagree with the correct answer.
Me too, but it's not terribly important. There could have been another option..."it depends".
For the record, I ticked...
---------------------------------------------------------------------
March 19, 2010 at 10:51 am
oops should have found that! thanks for the pointer, I have subscribed to the thread to keep an eye on it.
I does sound like its possibly in the guys database...
---------------------------------------------------------------------
March 19, 2010 at 10:38 am
buy the MS SQL SERVER 2005 Implementation and Maintenance training Kit. That will get you 15% off the exam price.
---------------------------------------------------------------------
March 19, 2010 at 7:46 am
I don't think I am giving away the farm if I say that if the answer boxes are square there is more than one correct answer, a radio button means...
---------------------------------------------------------------------
March 19, 2010 at 7:34 am
when the answer to the question starts with the phrase 'As I see it............', what chance have we got! π
Other than that I'm in agreement with what Jason said...
---------------------------------------------------------------------
March 19, 2010 at 7:22 am
ensure no connections to the databases and backup systemdbs before you start, including resource database
---------------------------------------------------------------------
March 18, 2010 at 8:39 am
tosscrosby-60625 (3/18/2010)
Alvin Ramard (3/18/2010)
You wanna different language? Ok, mesa know one. π
In reply to Quote: The problem with socialism is that you eventually run out of other peopleβs...
---------------------------------------------------------------------
March 18, 2010 at 8:36 am
Thanks for the 2 points!
Only 54% correct so far, there's too many devs on this site! So its good they learnt something important π π
---------------------------------------------------------------------
March 18, 2010 at 5:51 am
Viewing 15 posts - 2,776 through 2,790 (of 4,745 total)