Updating SQL - RESOLVED

csharp United States
  • 17 years ago

    Given an SQL Query String made to Insert/Update a SQL Table, how would you execute the command in c#?
    The code below works perfectly for Select statements but not Update/Insert statements:
    System.Data.SqlClient.SqlDataAdapter sqlDA = new System.Data.SqlClient.SqlDataAdapter(strQuery, m_SqlConnection);


    Note: Connection to the Database has already been established.


    PROBLEM RESOLVED:
    USE SqlCommand Method

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“In order to understand recursion, one must first understand recursion.”