Home > Sample chapters

Configuring Connections and Connecting to Data in Microsoft .NET Framework 3.5

Suggested Practices

To gain further knowledge on the subject of working with connections, complete the following practices.

  • Practice 1 Create an application that targets different databases, which can be selected when the application starts.

  • Practice 2 Design a reusable block of code that can be used to handle SQL Server errors of any severity.

  • Practice 3 Create a component that writes to a log every time a connection to a database is opened.