Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Replication / April 2006

Tip: Looking for answers? Try searching our database.

Relocate Log file .ldf of a replicated database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henry - 27 Apr 2006 03:21 GMT
Dear Sir/Madam,
I have a replicated database which all data and log file are currently on
RAID 5, and I now would like to move the log file to another drive which is
in RAID10.
As I can't detach the database for relocate the log file, what option do I
have to relocate the log file but no needed to drop and rebuild replication?
Please kindly help! Thanks!
Henry
Paul Ibison - 27 Apr 2006 09:08 GMT
Henry,
you should be able to use sp_detach_db/sp_attach_db for this eg:
sp_attach_db 'mydb','E:\Sqldata\mydbdata.mdf','E:\Sqldata\mydblog.ldf'
 Cheers,
          Paul Ibison SQL Server MVP, www.replicationanswers.com
            (recommended sql server 2000 replication book:
            http://www.nwsu.com/0974973602p.html)
Paul Ibison - 27 Apr 2006 10:40 GMT
Actually I just tried and Hilary is right. I investigated further and there
is a way to achieve this using sp_detach_db but it involves stopping the sql
server agent and editing the sysdatabases table and would therefore not be
supported. So, your best supported bet would be to do a nosync
initialization.
 Cheers,
          Paul Ibison SQL Server MVP, www.replicationanswers.com
            (recommended sql server 2000 replication book:
            http://www.nwsu.com/0974973602p.html)
Henry - 28 Apr 2006 07:08 GMT
Dear Paul,
I would like to know the meaning of nosync initialization? As in my case,
not all objects are being replicated and it would be a huge tasks for me to
replicate everything again objects by objects and would takes a long downtime
to the subscriber also. Any suggested idea would help, thanks!
Henry

> Actually I just tried and Hilary is right. I investigated further and there
> is a way to achieve this using sp_detach_db but it involves stopping the sql
[quoted text clipped - 5 lines]
>              (recommended sql server 2000 replication book:
>              http://www.nwsu.com/0974973602p.html)
Paul Ibison - 28 Apr 2006 09:25 GMT
Henry,
this article should help clarify things a bit:
http://www.replicationanswers.com/NoSyncInitializations.asp
Rgds,
  Cheers,
           Paul Ibison SQL Server MVP, www.replicationanswers.com
             (recommended sql server 2000 replication book:
             http://www.nwsu.com/0974973602p.html)
Hilary Cotter - 27 Apr 2006 10:20 GMT
You would have to drop replication and then detach and reattach.

Signature

Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

> Dear Sir/Madam,
> I have a replicated database which all data and log file are currently on
[quoted text clipped - 6 lines]
> Please kindly help! Thanks!
> Henry
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.