Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

a good way to shrink log file when transactions running?
I am working in a large company where thousands new records will be added
into  sql server 2000. Our proudcts are running for 24X7. Transactions could
be doing at anytime. So it  is impossible to ask users to log off the system
when to shrink the log file.
Is there a good way to do a shrinking job no matter what transactions are
running?

Report this thread to moderator Post Follow-up to this message
Old Post
bluesky
03-30-06 08:23 AM


Re: a good way to shrink log file when transactions running?
Why are you shrinking it in the first place?  If it grew that big before it
probably will again.  See this:

http://www.karaszi.com/SQLServer/info_dont_shrink.asp

And no shrinking does not require you to log off the users.

--
Andrew J. Kelly  SQL MVP


"bluesky" <bluesky@discussions.microsoft.com> wrote in message
news:F4DFA538-19E6-4457-AE82- F4CA856C68B7@microso
ft.com...
>I am working in a large company where thousands new records will be added
> into  sql server 2000. Our proudcts are running for 24X7. Transactions
> could
> be doing at anytime. So it  is impossible to ask users to log off the
> system
> when to shrink the log file.
> Is there a good way to do a shrinking job no matter what transactions are
> running?



Report this thread to moderator Post Follow-up to this message
Old Post
Andrew J. Kelly
03-30-06 08:23 AM


Re: a good way to shrink log file when transactions running?
It is right that it does not require you to log off the users.

>From the BOL for DBCC SHRINKFILE (because you only want to shrink the
log file)

The database being shrunk does not have to be in single-user mode;
other users can be working in the database when the file is shrunk. You
do not have to run SQL Server in single-user mode to shrink the system
databases.

It will only shrink the file as much as it can (despite you may put a
target there) and do not touch those that are currently in use.


Mel


Report this thread to moderator Post Follow-up to this message
Old Post
MSLam
03-30-06 12:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 07:53 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006