public static bool TLINK = false;// [True]: Test TechLink [False]: Test LOCAL PC public static SqlConnection GetDBConnection() { string datasource = "172.16.0.12"; string database = "ERPSOFT"; string username = "******"; string password = "******"; if (TLINK)// TLINK { return(DBSQLServerUtils.GetDBConnection(datasource, database, username, password)); } else// Test local { string connecString = string.Format("Data Source=ADMIN;Initial Catalog={0};Integrated Security=True", database); return(new SqlConnection(connecString)); } }
public static SqlConnection GetDBConnection() { //Data Source=LONG;Initial Catalog=TEST;Integrated Security=True //string datasource = "Long"; //string database = "TEST"; //string username = "******"; //string password = "******"; //string datasource = @"DESKTOP-83OVHRC\SQLEXPRESS"; //string database = "TLSOFT"; //string username = "******"; //string password = "******"; string datasource = "172.16.0.12"; string database = "ERPSOFT"; string username = "******"; string password = "******"; return(DBSQLServerUtils.GetDBConnection(datasource, database, username, password)); }