我现在用的是visual studio 2005 里的express版的sql server 2005
我要使用自己建的数据库:
(local)\sqlexpress.ChatRoom.dbo
那么web.config里面要进行设置: <connectionStrings>
<remove name="?"/>
<add name="?"
connectionString="Data Source=?;
Initial Catalog=?;
Integrated Security=?"
providerName="System.Data.SqlClient"/>
</connectionStrings>
====================================================================
上面打问号的地方都是我不明白的地方。
remove name中的name是什么意思呢?我在网上看到的是ConnectionString。
add name中的name是否和remove name 中的name相同?网上看到的都相同。
Data Source是什么意思呢?
Initial Catalog在网上看到的是数据库的意思。我这里应该写成什么呢?chatroom 还是(local)\sqlexpress\chatroom呢?
Integrated Security,我数据库用的是windows 身份验证 该写true还是SSPI呢?
我要使用自己建的数据库:
(local)\sqlexpress.ChatRoom.dbo
那么web.config里面要进行设置: <connectionStrings>
<remove name="?"/>
<add name="?"
connectionString="Data Source=?;
Initial Catalog=?;
Integrated Security=?"
providerName="System.Data.SqlClient"/>
</connectionStrings>
====================================================================
上面打问号的地方都是我不明白的地方。
remove name中的name是什么意思呢?我在网上看到的是ConnectionString。
add name中的name是否和remove name 中的name相同?网上看到的都相同。
Data Source是什么意思呢?
Initial Catalog在网上看到的是数据库的意思。我这里应该写成什么呢?chatroom 还是(local)\sqlexpress\chatroom呢?
Integrated Security,我数据库用的是windows 身份验证 该写true还是SSPI呢?
解决方案 »
- sqlserver取最近两小时内数据
- 想做一个不定时动态刷新数据的小模块
- 使用异步操作实现注册
- 使用SQL语句for xml生成的XML结果如何保存成XML文件?
- 这样的泛型方法怎么写?
- System.DateTime currentTime=new System.DateTime(); 怎样在页面上输出currentTime的值?
- 请问如何在treeview控件中 实现 tooltip屬性,100分
- IIS 负载均衡 实现
- 在线统计问题???
- 关于asp.net提交的一个小问题
- 用activexobject或xmlhttprequest对象读服务器上的XML文件怎么读不到?那里有问题?
- 关于一个js程序
providerName="System.Data.SqlClient" />你可以把|DataDirectory|想成项目的App_Data目录