Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change commandtext of dataadapter

Status
Not open for further replies.

marksilka

Programmer
Feb 26, 2005
12
0
0
US
I have an sql data adapter with the commandtext "SELECT * FROM TABLEA".

I have 2 other tables "B" and "C" with the exact same structure as "TABLEA". Can I change the commandtext of the data adapater to "SELECT * FROM TABLEB" and fill it with the rows of that table?

I have a dataset with TABLEA in it. I do a fill like so

daTable.Fill(dsTables.TableA)
 
I dont see why you couldnt. Try it! Let me know what happens.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top