Should I use ExecuteNonQuery for this db backup command

后端 未结 8 881
迷失自我
迷失自我 2021-01-17 03:26

I have a method that allows me to kick off a back up of a data base. What I am wondering is if I should be using ExecuteNonQuery() in this context or if there is something

8条回答
  •  悲哀的现实
    2021-01-17 04:15

    You should use ExecuteNonQuery when you do not what to receive any information from the database as a result of your call. If any error with happen during execute of the command you will get a corresponding exception.

提交回复
热议问题