By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

i have problem in my code when implement it by this message Invalid object name 'em

P: 1
I have problem in my code when try to implement
Invalid object name 'empl'.
empl-> is my table
Expand|Select|Wrap|Line Numbers
  1. Con.Open();
  2.             MessageBox.Show("connected");
  3.             SqlCommand cmd = new SqlCommand("INSERT INTO empl (name,password) VALUES  ('" + textBox1.Text + "','" + textBox2.Text + "') ", Con);
  6. cmd.ExecuteNonQuery();
  7. Con.Close();
Nov 30 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.