0
你好,我試圖連接我用這個代碼,我在網上找到了我的C#應用程序,但所行似乎在這裏工作是代碼C#應用程序連接到Xeround雲數據庫
SqlConnection myConnection = new SqlConnection("user id=ayoya;" +
"password=12333;" +
"server=instance28181.db.xeround.com:18422;" +
"Trusted_Connection=yes;" +
"database=salam;" +
"connection timeout=30;");
try
{
myConnection.Open();
}
catch (Exception a)
{
Console.WriteLine(a.ToString());
MessageBox.Show("Failed");
}
有人可以告訴我我哪裏錯了?