Example #1
0
 public conexion makeConnect(string usuario, string password, string driver, string host, string puerto, string service, string nombre)
 {
     conn = new conexion(usuario, password, driver, host, puerto, nombre);
     conn.StringConnection = "Data Source = " + conn.Host + "; User ID = " + conn.Usuario + "; Password = "******";";
     return(conn);
 }
Example #2
0
 public conexion makeConnect(string usuario, string password, string driver, string host, string puerto, string service, string nombre)
 {
     conn = new conexion(usuario, password, driver, host, puerto, service, nombre);
     conn.StringConnection = "Server=" + host + ";Database=" + service + ";User Id=" + usuario + ";Password = "******"; ";
     return(conn);
 }
Example #3
0
 public conexion makeConnect(string usuario, string password, string driver, string host, string puerto, string service, string nombre)
 {
     conn = new conexion(usuario, password, driver, host, puerto, service, nombre);
     conn.StringConnection = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=" + host + ")(PORT=" + puerto + ")))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=" + service + ")));User Id=" + usuario + ";Password="******";";
     return(conn);
 }