コード例 #1
0
ファイル: DB.cs プロジェクト: erik-whiting/DataDropLibrary
 public DB(
     string source, string catalog, string username,
     string password, string dbSystem, string port = ""
     )
 {
     DatabaseConnect = new DatabaseConnect(source, catalog, username, password, port, dbSystem);
     Connection      = new SqlConnection(DatabaseConnect.GenerateConnectionString());
     try
     {
         Connection.Open();
         Status = "Connected";
     }
     catch (Exception ex)
     {
         Status = "Connection Failed: " + ex;
     }
 }