xSQL Schema Compare SDK version 9.5 for SQL Server
GetConnectionString Method (SqlDatabase)


Gets the connection string for the database, which contains the credentials required to connect to the database.
Syntax
'Declaration
 
Public Function GetConnectionString() As System.String
public System.string GetConnectionString()
public: System.string* GetConnectionString(); 

Return Value

The connection string.
Remarks
This method returns the database connection string, if a dedicated connection string is used for the database and set via ConnectionString property; otherwise the connection string of the parent SQL Server is returned.
Requirements

Target Platforms: 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

Reference

SqlDatabase Class
SqlDatabase Members

 

 


┬ęCopyright 2018 xSQL Software. All Rights Reserved.

Send Feedback