February 19, 2009 at 5:19 am
Hi,
I want to know the query to detach and attach database in sql server 7.0.
i want to move original ldf file and want to provide new ldf file keeping original mdf as it is.....
also i am shrinking original ldf file in sql 2005 but it is not working.....i am enable to find error in it......please guide on exact procedure.....
Thanks,
February 19, 2009 at 6:23 am
For detach/attach, probably the same as SQL 2000, using the sp_detach_db and sp_attach_db procedures (see Books Online for details)
As for shrinking the log, why do you want to? Shrinking's a bad idea unless you know that the file in question won't grow to that size again. Growing is expensive and repeated shrink/grow cycles cause a number of problems.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply