Results 1 to 5 of 5

Thread: SqlCommand and DataAdapter?

Threaded View

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Question SqlCommand and DataAdapter?

    Does anyone know how many overloaded constructors the DataAdapter has? I know one of them takes an string representing an sql statment and a connection string. But does one of them take a SqlCommand object and a connection string?

    I am just reading a snippet from a book which says the following:

    "When using a DataAdpater with a DataSet, Command objects are used to return and modify data at the source through the DataAdapter object's SelectCommand, InsertCommand, UpdataCommand, and DeleteCommand properties."

    So would i have to set one of the previous properties of the DataAdapter to a SqlCommmand object? Im not quite sure. This crappy book fails to give a code snippet. Thanks.....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width