Guest User

Untitled

a guest
Oct 23rd, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. SqlConnection sql = new SqlConnection("Data Source = nombreServidor, Puerto;"+
  2. "Network Library = DBMSSOCN; Initial Catalog = dashboard;"+
  3. "User ID = XXXX; Password = XXXXX");
  4.  
  5.  
  6. try {
  7. sql.Open();
  8. }catch(Exception e)
  9. {
  10. Console.WriteLine(e.ToString());
  11. }
  12.  
  13. //declaramos la variable para comandos
  14. SqlCommand comando = new SqlCommand();`
Add Comment
Please, Sign In to add comment