I’m trying to read data in Visual Studio from multiple tables.
How do you read data from different tables? Do I have to create
- a separate connection,
- a separate command,
- a separate DataReader for each SELECT?
Thank you in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the tables have a link then you JOIN them in the database engine first.
If they are not to be JOINed, you can issue multiple SELECTs in one call and iterate through several DataReaders. Or load a DataSet via a DataAdaptor