Is it possible to restore only the schema and stored procedures from a MS SQL database backup?

后端 未结 3 2032
-上瘾入骨i
-上瘾入骨i 2021-01-20 20:11

I have a full MS SQL Backup file that I would like to extract the stored procedures and schema from. Is there a way to restore only the schema definitions a

相关标签:
3条回答
  • 2021-01-20 20:22

    I don't think so, but you could restore it to a temporary database and then script it all from there.

    0 讨论(0)
  • Yes its possible in SQL Server 2012. Right click your database -> tasks -> generate scritps ...

    Here all options are available.

    0 讨论(0)
  • 2021-01-20 20:23

    What SQL Server version (and tools) are you using? Under SQL 2000, I remember the "Import/Export Data" wizard, that let you specify which objects you wanted to import and where. You could even perform queries to obtain a subset of data.

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