April 2008
Intermediate to advanced
704 pages
17h 49m
English
Problem
You need to programmatically create or modify a syntactically correct connection string by working with its component parts or by parsing a given connection string.
Solution
Use the System.Data.Common.DbConnectionStringBuilder class or one of its strongly typed subclasses that form part of an ADO.NET data provider.
How It Works
Connection strings are String objects that contain a set of configuration parameters in the form of name-value pairs separated by semicolons. These configuration parameters instruct the ADO.NET infrastructure how to open a connection to the data source you want to access and how to handle the life cycle of connections to that data source. As a developer, ...
Read now
Unlock full access