Guest User

Untitled

a guest
Dec 11th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. OleDbConnection connection = new OleDbConnection();
  2. connection.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=â€ĒC:UsersBahoDocumentsuav.accdb;
  3. Persist Security Info=False;";
  4. connection.Open();
  5. checkConnection.Text = "Connection Successful";
  6. connection.Close();
  7. }
  8. catch (Exception ex)
  9. {
  10. MessageBox.Show("Error " + ex);
  11. }
Add Comment
Please, Sign In to add comment