Delete a record in DataGridView

穿精又带淫゛_ 提交于 2019-12-12 06:00:43

问题


I'm trying to delete a record in DataGridView but it is giving me this error:

Must declare the scalar variable "@reg_id".

My reg_id is the primary key column in the table. How can I resolve this?


回答1:


You have to give default value to @reg_id in stored procedure where you declare this parameter.

like @reg_id = NULL or @reg_id = ' '


来源:https://stackoverflow.com/questions/5386842/delete-a-record-in-datagridview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!