Skip to content

Commit 837ec3e

Browse files
committed
Updated SQL Server connection string arguments
1 parent 52fa073 commit 837ec3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Web/Managers/DbManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ private static DbConnection GetDbConnection(DatabaseType type, string server, in
620620
conn.Open();
621621
break;
622622
case DatabaseType.SQLServer:
623-
conn = new SqlConnection(string.Format("Data Source={0},{1};Database={2};User Id={3};Password={4};Encrypt=True;TrustServerCertificate=True;", server, port, databaseName, username, password));
623+
conn = new SqlConnection(string.Format("Server=tcp:{0},{1};Initial Catalog={2};User ID={3};Password={4};Encrypt=True;TrustServerCertificate=True;", server, port, databaseName, username, password));
624624
conn.Open();
625625
break;
626626
}

0 commit comments

Comments
 (0)