Advertisement
Guest User

Untitled

a guest
Aug 1st, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. string Source = "aonde o banco esta";
  2. string Banco = "qual banco";
  3. string User = "nome do usuario";
  4. string Senha = "senha do usuario";
  5.  
  6. SqlConnection NewConexao = new SqlConnection("Data Source="+ Source
  7. +"; Initial Catalog="+ Banco
  8. +"; User Id="+User
  9. +"; Password="+Senha
  10. +"; Integrated Security=false");
  11.  
  12. NewConexao.Open();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement