将db附加到asp.net中的网站 [英] attaching db to website in asp.net
本文介绍了将db附加到asp.net中的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在asp.net和sqlserver 2005中的db中创建了一个网站.现在的问题是,当我分离数据库时,我必须通过外部sqlserver附加它.如果sql的安装不正确,它将无法正常运行.没有提供sql server management studio,我无法附加它.有什么方法可以在visualstudio中打开站点并直接运行它而无需考虑附加问题.我认为您可以理解我.
I have created a website in asp.net and db in sqlserver 2005.My problem is now when ever I detach the db I have to attach it through the external sqlserver.If the installation of sql is not proper and it won''t provide sql server management studio, I can''t attach it.Is there any way to just open the site in visualstudio and just run it without thinking about attaching.i think u can understand me.
推荐答案
编号.
您必须先连接到SQL Server实例才能使用SQL数据库:这就像在不使用邮箱,邮局,邮票,邮递员或邮递员的情况下尝试发送信件一样.
您可以使用Access或SQLCE数据库在不使用SQL的情况下完成此操作,但是我不建议在多用户环境(例如网页)中使用它.
您可以使用MySql数据库来完成此操作,但随后需要安装MySql.
No.
You cannot use an SQL database without connecting to an instance of SQL server: that is like trying to send a letter without using a post box, or post office, or stamp, or postmen...
You can do it without SQL by using an Access or SQLCE database, but I would not recommend either for a multiuser environment, such as a webpage.
You could do it with a MySql database, but then you need an installation of MySql.
这篇关于将db附加到asp.net中的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文