Developers community number 1 connection string reference

SqlServer.Dts.DtsClient

This is a .NET Framework Class Library provided by Microsoft.
The class library is contained in the file Microsoft.SqlServer.Dts.DtsClient.dll.
Coding
Add a reference to the assembly Microsoft.SqlServer.Dts.DtsClient and include the Microsoft.SqlServer.Dts.DtsClient namespace. Instantiate a new DtsConnection connection object. Set the connection string and open the connection.


VB.NET code sample
Imports Microsoft.SqlServer.Dts.DtsClient
Dim myConnection As DtsConnection = New DtsConnection;();
myConnection.ConnectionString = myConnectionString
myConnection.Open()
//execute queries, etc
myConnection.Close()


C# code sample
using Microsoft.SqlServer.Dts.DtsClient;
DtsConnection myConnection = new DtsConnection;();
myConnection.ConnectionString = myConnectionString;
myConnection.Open();
//execute queries, etc
myConnection.Close();


Description
To reference the file you might have to browse to the dll. By default it's in the "C:\Program Files\Microsoft SQL Server\100\DTS\Binn" directory.;
Connection Strings
The SqlServer.Dts.DtsClient class library can be used to connect to the following data sources.

To see the available connection options, navigate to the connection strings reference by clicking the data source link.
Integration Services
Additional info or comments on this class library? Want to submit content?

Send an e-mail to
Copyright © 2012 ConnectionStrings.com   |   All Rights Reserved   |   Powered by CSAS   |   Send feedback, articles, requests and more connection strings here.