如何使用Vb.Net将一个SQL数据库还原到另一个 [英] How to Restore One Sql Database to Another Using Vb.Net

查看:178
本文介绍了如何使用Vb.Net将一个SQL数据库还原到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,



我在vb.net中用后端的sql数据库创建一个appliaction,现在我想要

恢复从现有的sql数据库到我的应用程序中的另一个,让我告诉你

数据库都有相同的表和字段。



请告诉你我用代码怎么做......



Indranil

解决方案

通过这个article



http://stackoverflow.com/questions/6807711/backup-restore-the-database-using-t-sql-mssql2005-2008 [ ^ ]


如果两个数据库具有相同的表,则可以使用 S复制数据。 QL BulkCopy [ ^ ]方法

Dear Sir,

I am creating an appliaction in vb.net with sql database in backend, now i want to
Restore from existing sql database to another in my application, let me tell you that
both the databases have same tables and fields.

Please tell me with codes how to do that......

Indranil

解决方案

Go through this article

http://stackoverflow.com/questions/6807711/backup-restore-the-database-using-t-sql-mssql2005-2008[^]


If both databases have the same tables, you can copy your data using SQL BulkCopy[^] method.


这篇关于如何使用Vb.Net将一个SQL数据库还原到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆