How to connect an existing wizard generated data set to a different server(same database) at run tim

Posted by Kiril on Stack Overflow See other posts from Stack Overflow or by Kiril
Published on 2010-04-07T09:52:57Z Indexed on 2010/04/08 2:23 UTC
Read the original article Hit count: 430

Filed under:
|
|
|
|

Hello, I am coding a simple space empire management game in Visual C# 2008, which relies on connecting to a remote SQL server database to get/store data. I would like the user to be able to connect to a user-specified SQL server from the login screen(he specifies IP address, port, database name, ID, password and presses "connect" button). However, I found out that the Dataset connection string property is read only and cannot be changed. Is there any way to guide the wizard-generated DataSet to a user-specified server at run time? Thanks in advance.

© Stack Overflow or respective owner

Related posts about c#

Related posts about dataset