Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. sql = "INSERT INTO '" + textBoxNumeTabel.Text + "' SELECT * FROM " +"'" +numeTabel +"';";
  2. Console.WriteLine(sql);
  3.  
  4. command = new SQLiteCommand(sql, AppHelper.getInstance().dbConnection);
  5. try
  6. {
  7. command.ExecuteReader();
  8. }
  9. catch (SQLiteException ex)
  10. {
  11. MessageBox.Show(ex.Message, "Eroare", MessageBoxButtons.OK, MessageBoxIcon.Error);
  12. }
  13.  
  14. sql = "DROP TABLE " +"'" + numeTabel +"';";
  15.  
  16. Console.WriteLine(sql);
  17. command = new SQLiteCommand(sql, AppHelper.getInstance().dbConnection);
  18. try
  19. {
  20. command.ExecuteReader();
  21. }
  22. catch (SQLiteException ex)
  23. {
  24. MessageBox.Show(ex.Message, "Eroare", MessageBoxButtons.OK, MessageBoxIcon.Error);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement