flstffatboy
Technical User
- Sep 19, 2002
- 84
Hello all,
I have a SQL Server 2000 test database which is a backup and restored copy from our production database. The production database has transactional replication running on it but the test database does not.
I'm having issues with trying to shrink the transaction log for the test database. Im getting a message that replicated transactions exist in the log.
I have tried to run sp_removedbreplication on the test database and then backup and shrink the log but it will not work.
I have also tried to do a sp_detach_db, rename the log files and then tried to run a sp_attach_db but I keep getting the error below.
Server: Msg 1813, Level 16, State 2, Line 1
Could not open new database 'preproddb'. CREATE DATABASE is aborted.
Device activation error. The physical file name 'L:\Program Files\Microsoft SQL Server\MSSQL\Data\preproddb_Log.LDF' may be incorrect.
Device activation error. The physical file name 'L:\Program Files\Microsoft SQL Server\MSSQL\Data\preproddb_Log2_Log.LDF' may be incorrect.
Can you attach a SQL Server 2000 database without the log files? I thought the log files will be created if they do not exist.
Thank you in advance for your help!
FLSTF
I have a SQL Server 2000 test database which is a backup and restored copy from our production database. The production database has transactional replication running on it but the test database does not.
I'm having issues with trying to shrink the transaction log for the test database. Im getting a message that replicated transactions exist in the log.
I have tried to run sp_removedbreplication on the test database and then backup and shrink the log but it will not work.
I have also tried to do a sp_detach_db, rename the log files and then tried to run a sp_attach_db but I keep getting the error below.
Server: Msg 1813, Level 16, State 2, Line 1
Could not open new database 'preproddb'. CREATE DATABASE is aborted.
Device activation error. The physical file name 'L:\Program Files\Microsoft SQL Server\MSSQL\Data\preproddb_Log.LDF' may be incorrect.
Device activation error. The physical file name 'L:\Program Files\Microsoft SQL Server\MSSQL\Data\preproddb_Log2_Log.LDF' may be incorrect.
Can you attach a SQL Server 2000 database without the log files? I thought the log files will be created if they do not exist.
Thank you in advance for your help!
FLSTF