SQL Server 2005 restore one schema only

前端 未结 3 1323
一向
一向 2020-12-12 02:03

I am pretty sure this isn\'t possible....

We have a database with several schemas. Each schema belongs to a different user. One user was asking \"if I find out I mad

相关标签:
3条回答
  • 2020-12-12 02:33

    You have to restore a copy of the whole database to a point in time and then copy over the schema data back into the original database. If this is needed on a regular basis in future you could use filegroups as John suggested and do a partial recovery of a copy, then copy the data back in. But you cannot, even with filegroups, do a partial recovery to a point in time (which is what you're asking for), afaik no such thing exists.

    0 讨论(0)
  • 2020-12-12 02:38

    You are correct, it is not possible to restore a single schema only.

    That said, had you stored all specific schema objects to a specific Filegroup and had been taking Filegroup backups then you could restore just the affected Filegroup.

    If you are administering a large number of schemas/filegroups however, this would be quite cumbersome.

    0 讨论(0)
  • 2020-12-12 02:46

    Restore the whole database to a database with a different name.

    Copy over the parts that you wish to restore.

    0 讨论(0)
提交回复
热议问题