Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Attach replicated .MDF file with/without log after OS reinstalled [Reposting in right forum]

$
0
0

I had posted this on wrong forum: So Reposting this here:

Server had SQL server 2014 DataCenter RTM Version on Windows 2012 Standard Edition for about 2 months and had migrated the database from SQL 2008 R2.

The database had transactional replication was being replicated to another server. The Distributor and Subscriber are on thier own servers.

Tried applying the Service Pack 1 on Sunday morning which brought the entire system to a halt and asked for Windows-Activate Code Key.

The Service Pack was being applied due to the following issues:

1) Checkpoint didn't occur

2) Transaction log was full due to Active transaction

3) SQL Server takes long time to open the databases after the recovery phase when the number of databases or database files or both is large in SQL Server 2012 or SQL Server 2014

4)You cannot set a SQL Server 2012 or 2014 database to single-user mode if the database is read-only

5)SQL Server crashes when the log file of tempdb database is full in SQL Server 2012 or SQL Server 2014 Here the log file for the AHS_DataStore was full due to “Active tansaction” SQL Server 2014 Service Pack 1

6)Rollback causes database to go to suspect mode in SQL Server 2012 or SQL - Roll back caused it to go in Recovery which was an ALTER on table of IDs(max of Int) - Should have found a better way.

Finally, had to reinstall the OS yesterday, SQL 2014 again, applied Service pack 1, will be adding the Cumulative updates till 3 for SP1 today.

Is there any way for me to establish all the replication settings as it was before. I do have all the baks of the System DBs from the previous install.

OR how do I go back to just attaching the MDF file without the log as it was really huge and the backup happened 1 week back which was on the 11/3/2015 I have all the logs from then.

Would appreciate any suggestions or workarounds that would bring the DB back up soon.

Thanks


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>