Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log file

Status
Not open for further replies.

edwardturner

Technical User
Jul 13, 2005
25
GB
Can anyone tell me the SQL command to stop the log file being written to (assuming there is one!)?

The SQL script I am trying to run increases the log file to about 11Gb and it is at that point my HDD gets full so the script does not finish. Therefore I need a way to switch off the log file while this script is running.

Any ideas?
 
edward,

By setting your DB recovery model to "Simple" you will stop the log being written to.

Enterprise Manager > Right Click DB > Properties > Options > Change Model to Simple.

Hope this helps,


Cheers,
Leigh

"Give a man a fish and he can feed himself for a day..."
Give him the means to catch his own fish and he can really annoy his girlfriend by spending all his spare time fishing!


Join the PAC -
 
Also in T-SQL:

Code:
alter database db_name
set recovery simple



Cheers,
Leigh

"Give a man a fish and he can feed himself for a day..."
Give him the means to catch his own fish and he can really annoy his girlfriend by spending all his spare time fishing!


Join the PAC -
 
And to put it back to full when you've finished...

Code:
alter database db_name
set recovery full



Cheers,
Leigh

"Give a man a fish and he can feed himself for a day..."
Give him the means to catch his own fish and he can really annoy his girlfriend by spending all his spare time fishing!


Join the PAC -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top