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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andandy
    New Member
    • Nov 2014
    • 1

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

    I have problem in my code when try to implement
    message:
    Invalid object name 'empl'.
    empl-> is my table
    code:
    Code:
    Con.Open();
                MessageBox.Show("connected");
                SqlCommand cmd = new SqlCommand("INSERT INTO empl (name,password) VALUES  ('" + textBox1.Text + "','" + textBox2.Text + "') ", Con);
    
    
    cmd.ExecuteNonQuery();
    Con.Close();
    Last edited by Rabbit; Nov 30 '14, 05:48 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
Working...