July 15, 2013 at 12:28 am
Hi,
How can i restore the database into temp database in SQL server 2008 R2
Advance Thanks.......,
July 15, 2013 at 12:54 am
The [tempdb] is re-created every time the SQL Engine is (re-)started. There is no need and it's even not possible to create a backup of the [tempdb].
If you want to create a temporary restore of an existing datatabase: restore the backup and supply a different database name.
July 15, 2013 at 1:26 am
What exactly do you mean by 'restore as a temp database'? If you mean one you'll drop soon, that's no different from a normal database so just use the RESTORE DATBASE, specify a new name and specify a new location for the files.
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 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply