Show / Hide Table of Contents

CreateConnectionString Method (DbProvider)

The hostname, IP, or unique identifier name for the database (i.e. host name for MSSQL or SID for Oracle)

The catalog or database name for the database (for MSSQL and Sybase, not required for Oracle-based providers)

The user name for database authentication

The password for the user for database authentication

Additional key/value pairs separated by a semi-colon (;).

Creates a basic connection string from the basic common required elements according the rules of the specific database type

Syntax

'Declaration

Public MustOverride Function CreateConnectionString( _
   ByVal _dbServer_ As String, _
   ByVal _dbName_ As String, _
   ByVal _dbUser_ As String, _
   ByVal _dbPass_ As String, _
   ByVal _extraParams_ As String _
) As String
public abstract string CreateConnectionString( 
   string _dbServer_,
   string _dbName_,
   string _dbUser_,
   string _dbPass_,
   string _extraParams_
)

Parameters

dbServer

The hostname, IP, or unique identifier name for the database (i.e. host name for MSSQL or SID for Oracle)

dbName

The catalog or database name for the database (for MSSQL and Sybase, not required for Oracle-based providers)

dbUser

The user name for database authentication

dbPass

The password for the user for database authentication

extraParams

Additional key/value pairs separated by a semi-colon (;).

Return Value

A properly formatted, ADO.NET-compliant connection string.

Remarks

NOTE: This method does not validate the format of the extraParams argument. If the the value of extraParams is invalid, the connection string may not work properly.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server family

Reference

DbProvider Class
DbProvider Members

Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.