Dundas.SharePoint.Charting.WebParts Send comments on this topic.
TestConnection Method
See Also 
Dundas.SharePoint.Data Namespace > DataSourceSql Class : TestConnection Method


providerName
Name of the provider.
userName
Name of the user.
password
The password.
connectionString
The connection string.
sQLAuthentication
The s QL authentication.
error
The error.
Check if ther connection is valid

Syntax

Visual Basic (Declaration)  
Public Shared Function TestConnection( _
   ByVal providerName As String, _
   ByVal userName As String, _
   ByVal password As String, _
   ByVal connectionString As String, _
   ByVal sQLAuthentication As SQLAuthentication, _
   ByRef error As String _
) As Boolean
Visual Basic (Usage) Copy Code
Dim providerName As String
Dim userName As String
Dim password As String
Dim connectionString As String
Dim sQLAuthentication As SQLAuthentication
Dim error As String
Dim value As Boolean
 
value = DataSourceSql.TestConnection(providerName, userName, password, connectionString, sQLAuthentication, error)
C#  
public static bool TestConnection( 
   string providerName,
   string userName,
   string password,
   string connectionString,
   SQLAuthentication sQLAuthentication,
   out string error
)

Parameters

providerName
Name of the provider.
userName
Name of the user.
password
The password.
connectionString
The connection string.
sQLAuthentication
The s QL authentication.
error
The error.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also