Advertisement
Guest User

Untitled

a guest
Jan 25th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. SqlCommand putuser = new SqlCommand("INSERT INTO MainDB(NumberofEmployees) VALUES(4)", cn);
  2.  
  3. putuser.ExecuteNonQuery();
  4.  
  5. <add name="ConnectionString"
  6. connectionString="Data Source=127.0.0.1; Initial Catalog=DataBase;Persist Security Info=True;User ID=user; Password=password
  7.  
  8. <add name="ConnectionString"
  9. connectionString="Data Source=127.0.0.1; Initial Catalog=DataBase;Trusted_Connection=Yes;Persist Security Info=True;"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement