Hi all,
I come from an oracle background; hence sql gurus here please kindly show me the light ->
In Oracle, to take a 100% clean backup of the database and use the backup for restoration onto a new environment, we could always
i) shutdown the database, mount it and do a backup. then restore the backup elsewhere.
ii) shutdown the database (so that no more transactions can come in), restore the latest backup along with all its archivelogs + existing online redolog on the new environment.
Both ways above allow us to have consistent data to the point of the database shutdown restored in a new environment.
The most straightforward way is i) of course..
=======================
With SQL server now, I have this requirement to cleanly migrate a few databases to a new environment and I intend to do so by taking a clean backup follow by a restore.
How do I
i) shutdown a particular database and do a backup ? i try taking the database offline but i am not able to select the backup option in SSMS nor issue T-SQL backup statement
ii) if i am not able to do a cold backup, how do i do a hot backup but disallow any application/users from connecting to it except myself ? (as i do not want any more application/user transactions to come in )
iii) how do i take a backup tail of a transaction log with the database open ? (if transactions keep coming in) then the tail is ever extending ? but bear in mind i can't take a backup with the database in offline mode.
-- i just want to take a clean backup so i can restore it else where :[
Regards,
Noob