Hello,
Thanks for using Microsoft Newsgroup Support Service, my name is Colbert
Zhou [MSFT] and I will be working on this issue with you.
The connection string determines which database to query, and the
TableAdapter, SelectCommand, UpdateCommand, DeleteCommand determinds what
and how to query the specified database. They do not depend each other.
That is to say, as long as you new target database has the same table as
the orignal one. It should work!
Please note when I say "same table", I mean not only the name of the table
should remain same, the schema should also be same as the original
ones.(name, column count, column names, column type, relationship)
Actually, I have a quick test and it works fine in my side when I
dynamically change config file's connection string to target another
database.
Best regards,
Colbert Zhou (colbertz @online.microsoft.com, remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(E-Mail Removed).