修改表后SQL Server数据导入
我有一个数据库备份,已将其导入到 SQL Server 中,并通过添加一些列进行了一些更改。没有删除任何现有的列,而是添加了一些额外的列。
现在我希望再次导入相同的数据库,以便我拥有在我添加列时在旧数据库中输入的所有最新数据。
实现这一目标的正确、有效和高效的方法是什么?
感谢您的建议。
I have a database backup which I imported into SQL Server and made few changes by adding some columns. Did not remove any of the existing columns but added some extra.
Now I wish to import the same database once again so I have all the latest data which was being entered in old one while I was working on adding columns.
What would be the proper, effective and efficient way to achieve this?
Thanks for suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在同一服务器上还原备份,然后运行以下命令:
您可以相应地添加 where 子句和特定列。
选择上的列数必须与插入相匹配。
Restore the Backup on the same server, then run this:
You can add a where clause and specific columns accordingly.
The column count on the select has to match the insert.