如何将SQL Server数据库附加到asp.net

编程入门 行业动态 更新时间:2024-10-24 14:21:39
本文介绍了如何将SQL Server数据库附加到asp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何将sql server附加到asp?

how to attach sql server to asp?

推荐答案

您必须通过web.config 完成它 添加以下内容,并阅读有关如何从Web应用程序调用数据库调用的更多信息. You have to do it through the web.config Add the following, and read more about how to invoke database calls from your web app. <connectionStrings> <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /> </connectionStrings>

阅读以下内容以获取更多详细信息. msdn.microsoft/en-us/library/ms178411.aspx

Read the following for more details. msdn.microsoft/en-us/library/ms178411.aspx

您可以通过在Google本身中进行搜索来获取解决方案. 尝试此 [ ^ ]. 或 如何将sql数据库连接到asp [ ^ ] You can get the solution just by searching in google itself. Try this[^]. or how to connect sql database to asp[^]

更多推荐

如何将SQL Server数据库附加到asp.net

本文发布于:2023-11-10 01:04:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573938.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   数据库   SQL   Server   asp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!