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

URGENT HELP !! How to move transaction log to new drive?
We installed a new mirrored set of drives in our primary server this morning
and planned to move the transaction logs for all databases.  We cannot find
how you move them.  It won't let us change the primary tlog.
ARRRGHHHH....something like this should be simple.

Thanks for any help you may have!!!



Report this thread to moderator Post Follow-up to this message
Old Post
Tim Greenwood
04-07-06 02:23 PM


Re: URGENT HELP !! How to move transaction log to new drive?
From SQL Mag ... (I always keep this article handy as this is a very common
question from my students)

Use sp_detach_db to detach the database and move the log files physically,
then use sp_attach_db to attach them, specifying the new file location.
Sp_detach_db checks the database to make sure the files are clean and
removes the row in the Master database's sysdatabases table that references
the database. Sp_attach_db recreates the reference in sysdatabases and lets
you specify alternative file locations for the database files.

--
Shaun Beane, MCT, MCDST, MCDBA
dbageek.blogspot.com

"Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
news:%23RtpyrkWGHA.128@TK2MSFTNGP05.phx.gbl...
> We installed a new mirrored set of drives in our primary server this
> morning and planned to move the transaction logs for all databases.  We
> cannot find how you move them.  It won't let us change the primary tlog.
> ARRRGHHHH....something like this should be simple.
>
> Thanks for any help you may have!!!
>



Report this thread to moderator Post Follow-up to this message
Old Post
Shaun Beane
04-07-06 04:23 PM


Re: URGENT HELP !! How to move transaction log to new drive?
Thank you!!  I have done the detach/attach several times from ep but never
with the sproc....me and my boss thank  you!



"Shaun Beane" <shaun.beane@gmail.nojunk.com> wrote in message
news:%23wE7y6kWGHA.2268@TK2MSFTNGP02.phx.gbl...
> From SQL Mag ... (I always keep this article handy as this is a very
> common question from my students)
>
> Use sp_detach_db to detach the database and move the log files physically,
> then use sp_attach_db to attach them, specifying the new file location.
> Sp_detach_db checks the database to make sure the files are clean and
> removes the row in the Master database's sysdatabases table that
> references the database. Sp_attach_db recreates the reference in
> sysdatabases and lets you specify alternative file locations for the
> database files.
>
> --
> Shaun Beane, MCT, MCDST, MCDBA
> dbageek.blogspot.com
>
> "Tim Greenwood" <tim_greenwood A-T yahoo D-O-T com> wrote in message
> news:%23RtpyrkWGHA.128@TK2MSFTNGP05.phx.gbl... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Tim Greenwood
04-07-06 04: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:42 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006