Results 1 to 2 of 2

Thread: database to dataset...

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283

    database to dataset...

    when I use OleDBDataAdapter with arguments (Command, Connection) my command is always "SELECT * FROM tableName".
    then I use DataAdapter.Fill(myDataSet)
    how can i use it to fill from the whole Database and not just the one table i specify in the command string?

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Either you use multiple DataTable objects then add them to DataTableCollection of the dataset you're working with
    or include as many tables as you really need in the command SQL String like this if I'm right .

    "SELECT * FROM tableName,tabletwo,tablethree".

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