1

I have a datahandler for my Sencha Touch application and am trying to write to a database. When reading from a database, I call reader.Read() and that works just fine. What should I call to run an insert into query on my database from the datahandler? Any thoughts? Thanks!

bnrq
  • 171
  • 1
  • 1
  • 10

1 Answers1

3

You can use the ExecuteNonQuery (or async equivalents) of the SqlCommand class.

l33tmike
  • 351
  • 1
  • 8
  • Thank you very much! I was able to successfully write to the database. Appreciate your time. – bnrq May 15 '13 at 15:56