FCFL.NET Common Library - API Reference
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 2003 family

See Also

Reference

DbProvider Class
DbProvider Members

 

 


© 2010 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.

Send comments on this topic.