Version

BuildConnectionString Method

Builds a connection string based on the specified parameters.
Syntax
'Declaration
 
Public Shared Function BuildConnectionString( _
   ByVal serverURL As String, _
   ByVal msOLAPVersion As Integer, _
   Optional ByVal username As String, _
   Optional ByVal password As String _
) As String
public static string BuildConnectionString( 
   string serverURL,
   int msOLAPVersion,
   string username,
   string password
)

Parameters

serverURL
The universal resource locator identifying the OLAP server.
msOLAPVersion
The version of the MSOLAP data provider to use.
username
Optional username.
password
Optional password.

Return Value

An ADOMD.NET connection string.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also