【问题标题】:Change the ConnectionString from a online tutorial从在线教程更改 ConnectionString
【发布时间】:2014-06-26 22:18:06
【问题描述】:

我在看一个复数教程,为了执行代码,我必须重做连接字符串。

<add name="CodedHomesDEV" connectionString="Data Source=STORMSHADOW\SQLSERVER;Initial 
Catalog=CodedHomesDEV;Integrated Security=True" providerName="System.Data.SqlClient" />

我想我必须更改数据源,但我不知道要替换什么。

有什么帮助吗?

【问题讨论】:

标签: c# visual-studio-2013 connection-string app-config


【解决方案1】:

您必须将数据源替换为您的数据库 CodedHomesDEV 的本地副本所在的 SQL Server 的命名或默认实例。假设您没有更改连接字符串中的任何其他内容,则无需更改数据库 CodedHomesDEV 的名称。

如果有,则将初始目录更改为新命名的数据库。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多