我如何在vb.net中自动附加我的SQL数据库? [英] how i can auto-attach my sql db in vb.net?

查看:116
本文介绍了我如何在vb.net中自动附加我的SQL数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.
当我在其他系统上安装sql db时如何进行自动附加以将sql db附加到应用程序.(sql server 2008和vb.net 2008)



hi.
how i can make auto-attach for attach my sql db to my appliation when i''m install it in other system.(sql server 2008 and vb.net 2008)



thanks.

推荐答案

如果通过附加来表示如何将数据库附加到现有的SQL Server实例,请参见 ^ ]和在连接到本地SQL Server Express实例时附加数据库文件"..

请注意,这仅适用于SQL Server Express Edition.
If by attaching you mean how to attach a database to an existing SQL Server instance, see http://www.connectionstrings.com/sql-server-2008[^] and "Attach a database file on connect to a local SQL Server Express instance".

Note that this only works with SQL Server Express Edition.


这篇关于我如何在vb.net中自动附加我的SQL数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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