I am moving my SQL Server database to a new windows machine, however, I do not want to lose any transactions during this process. I have been unable to find anything around this anywhere which this seems like it would be common, so any help would be appreciated.
I have a production server and a staging server. My production server I would like to retire, so I have created a full database backup and restored it on my staging server. I would like to point the production endpoint to the staging server to it becomes production. This works great, however, any transaction between me creating the full database backup up until the switching of the production endpoint would be lost. How can I get those transactions over to the new production server without having any downtime?
My thought was to import the full database backup on the staging server, and then point production to that server, and then use transaction logs to update the new server, however, after restoring the full backup, the restore transaction logs is grayed out.
I've seen posts suggesting using NO RECOVERY when restoring the full backup, however, this puts the database in an inaccessible state which would cause downtime.