创建自己的:
var uriString = ConfigurationManager.AppSettings["SQLSERVER_URI"];
var uri = new Uri(uriString);
var connectionString = new SqlConnectionStringBuilder
{
DataSource = uri.Host,
InitialCatalog = uri.AbsolutePath.Trim('/'),
UserID = uri.UserInfo.Split(':').First(),
Password = uri.UserInfo.Split(':').Last(),
}.ConnectionString;
开发名称:
<connectionStrings>
<add name="connectionstringname" connectionString="Server=localhost;
Database=my-app-debug;User ID=test;Password=dfy5fgFdsvV;" />
<connectionStrings>
更多信息: http: //support.appharbor.com/kb/add-ons/using-sequelizer
这是一个常见问题解答:当人们遇到与管理工作室的连接问题时,它会显示那里的信息,这将很有帮助。
http://support.appharbor.com/kb/getting-started/frequently-asked-questions