data insert using input output stored procedure

前端 未结 3 1471
说谎
说谎 2021-01-22 21:20

I am creating a web application using ASP.net C#. I have a booking form and I need to insert data into a table using a Stored Procedure. The table has several columns, out of wh

3条回答
  •  后悔当初
    2021-01-22 22:09

    use sql parameter..

    connection = ConfigurationManager.AppSettings["mycon"];

            SqlParameter[] para = new SqlParameter[2];
            para[0] = new SqlParameter("@stored procedure column name", string name);
            para[1] = new SqlParameter("@stored procedure column name", string name);
    

提交回复
热议问题