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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ODBC Prompt

Status
Not open for further replies.

mlager

Programmer
Sep 1, 2006
74
US
I'm new to Visual Studio 2008 and have built my first application using Visual Basic. Super simple.

1) Added new data source which points to an ODBC data source.

2) Drug the table to the form which gave me a data grid view.

Everything works find. It works when I take it to another computer as well as long as the ODBC source is setup identically (auth methods too). Is there a simple way to create a button that allows the user to configure which data source or SQL server it is connecting to?
 
Here's a tip. Don't use an ODBC DSN at all. If you're connecting to SQL Server, use SQLClient. If you're using ODBC for something else, build a connection string that does not use a DSN. See
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top