Restored database missing views, stored procs and foreign keys

后端 未结 2 1808
清歌不尽
清歌不尽 2021-01-21 21:34

I\'m trying to create a copy of a database in SQL Management Studio (SQL Server Express) using Backup-Restore. Local to local. When I do it it copies tables and data, but igno

相关标签:
2条回答
  • 2021-01-21 21:48

    This was because of an old backup file. I was under the impression that backing up from a database would just copy what was there currently, but it turns out that the backups come from snapshots taken of the database instead. Those backups did not contain the missing views, stored procedures and foreign keys.

    0 讨论(0)
  • 2021-01-21 21:59

    Backup and restore will transfer anything in that database, even views and procedures. You must be doing wrong something else. Are you looking at the wrong database? Or is the restore failing?

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