try { OleDbConnection con = new OleDbConnection("Provider=SQLOLEDB;Data Source=192.168.2.12\\BTBP;Connect Timeout=20;Initial Catalog=consultant;User ID=sa;PWD=BTBP;Network Library=DBMSSOCN;"); con.Open(); MessageBox.Show(con.State.ToString()); } catch (Exception ex) { MessageBox.Show(ex.Message); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)