Given an SQL Query String [strQuery] made to Insert/Update a SQL Table, how would you execute the command in c#?
For the "Select" Query statements it was simple:
System.Data.SqlClient.SqlDataAdapter sqlDA = new System.Data.SqlClient.SqlDataAdapter(strQuery, m_SqlConnection);
However this line is not working for "Insert" and "Update", it does not generate any errors but the SQL Table is not updated.
Note: Connection to the Database has already been established.
For the "Select" Query statements it was simple:
System.Data.SqlClient.SqlDataAdapter sqlDA = new System.Data.SqlClient.SqlDataAdapter(strQuery, m_SqlConnection);
However this line is not working for "Insert" and "Update", it does not generate any errors but the SQL Table is not updated.
Note: Connection to the Database has already been established.