O'Reilly logo

Visual Basic® .NET Database Programming by Rod Stephens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data Link Properties

The Data Link Properties dialog helps you configure a connection to a database. Many of the other wizards use this dialog to let you build a connection if you have not already built one.

To start this dialog by itself, open a new form, click the Toolbox’s Data tab, and double-click the SqlConnection tool. If you are using Access instead of SQL Server, double-click the OleDbConnection tool.

Below the form’s design area, you should see the new SqlConnection object with a name such as SqlConnection1. Click this object and then click the ConnectionString property in the Properties window. When the drop-down arrow appears, click it, and select <New Connection...> from the drop-down list. The Data Link Properties dialog shown ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required