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

Moving Transaction Log to another Drive
I have a SQL 2000 database in place running fine.  However, the Database and
the Logs files are on the same drive.  I want to move the Transaction log to
another drive seperate from my database location.

What is the best way to accomplish this?

Can I just detach the database and copy the log file to a different drive?
Re-attach the database and point the new location of the log file.

Thanks


Report this thread to moderator Post Follow-up to this message
Old Post
Larry Bird
11-29-05 04:23 PM


RE: Moving Transaction Log to another Drive
Yes, this method is fine. However, remember that your database will remain
unavailable for the duration from being detached till being re-attached.

"Larry Bird" wrote:

> I have a SQL 2000 database in place running fine.  However, the Database a
nd
> the Logs files are on the same drive.  I want to move the Transaction log 
to
> another drive seperate from my database location.
>
> What is the best way to accomplish this?
>
> Can I just detach the database and copy the log file to a different drive?
> Re-attach the database and point the new location of the log file.
>
> Thanks
>

Report this thread to moderator Post Follow-up to this message
Old Post
Absar Ahmad
11-29-05 06:23 PM


RE: Moving Transaction Log to another Drive
You can also accomplish this while keeping the database available to the
application and users. But this method is slightly complicated and it will
take more time than the earlier method. Please take a Full Database Backup
before using this method.

Here are the steps for this:

1.	Use ‘Alter Database … ADD LOG FILE…’ to add a new Log File. The N
ew Log
File should be located on the other Hard Disk. Size of the New Log File
should be equal to (or greater than) the size of the existing Log File (Old
Log File).
2.	Use ‘DBCC SHRINKFILE ..........EMPTYFILE’ to ‘empty’ the Old Log 
File.
3.	Use ‘Alter Database … REMOVE FILE …’ to remove the Old Log File.

"Absar Ahmad" wrote:

> Yes, this method is fine. However, remember that your database will remain
> unavailable for the duration from being detached till being re-attached.
>
> "Larry Bird" wrote:
> 

Report this thread to moderator Post Follow-up to this message
Old Post
Absar Ahmad
11-30-05 01:23 AM


Re: Moving Transaction Log to another Drive
Use GOOGLE.  This question has been posted a million (milliard) times
before!


"Larry Bird" < LarryBird@discussion
s.microsoft.com> wrote in message
news:945B443F-146F-4861-84E3- 77A79579EE89@microso
ft.com...
>I have a SQL 2000 database in place running fine.  However, the Database
>and
> the Logs files are on the same drive.  I want to move the Transaction log
> to
> another drive seperate from my database location.
>
> What is the best way to accomplish this?
>
> Can I just detach the database and copy the log file to a different drive?
> Re-attach the database and point the new location of the log file.
>
> Thanks
>



Report this thread to moderator Post Follow-up to this message
Old Post
Bud Y. Zer
11-30-05 01:23 AM


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 11:20 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006