jamie_pattison
Well-known member
- Joined
- Sep 9, 2008
- Messages
- 116
- Programming Experience
- Beginner
I add a new dataset to my ASP .Net project. I create a TableAdapter with one query:
Select col1, col2, col3 From MyTable
I then create a second query:
Select col1 WHERE col1=@Col1 From MyTable. I then get a warning
"the new command text returns data with schema different from the schema of the main query"
So am i doing something wrong?
How could i avoid the above message?
Why is the warning coming up?
The way i look at it is that each tableAdapter should be replicating (or close enough) each table in my database, therefore this tableadapter could have queries that return data from the same table?
I could create another TableAdapter but before i decide to do anything else, i would like to understand what and why i am receiving the above warning?
Thanks in advance
Also, before anyone says anything like search google etc, then i have and found a few people who have had a similar error but i failed to understand the reason why i cant one tableAdpater with 2 queries as above.
Select col1, col2, col3 From MyTable
I then create a second query:
Select col1 WHERE col1=@Col1 From MyTable. I then get a warning
"the new command text returns data with schema different from the schema of the main query"
So am i doing something wrong?
How could i avoid the above message?
Why is the warning coming up?
The way i look at it is that each tableAdapter should be replicating (or close enough) each table in my database, therefore this tableadapter could have queries that return data from the same table?
I could create another TableAdapter but before i decide to do anything else, i would like to understand what and why i am receiving the above warning?
Thanks in advance
Also, before anyone says anything like search google etc, then i have and found a few people who have had a similar error but i failed to understand the reason why i cant one tableAdpater with 2 queries as above.
Last edited: