xSQL.Schema.SqlServer Namespace > SqlServer Class > GetDatabase Method : GetDatabase(String,String) Method |
'Declaration Public Overloads Function GetDatabase( _ ByVal dbName As System.String, _ ByVal connectionString As System.String _ ) As SqlDatabase
public SqlDatabase GetDatabase( System.string dbName, System.string connectionString )
public: SqlDatabase* GetDatabase( System.string* dbName, System.string* connectionString )
Exception | Description |
---|---|
System.ArgumentNullException | The dbName parameter is null or The connectionString parameter is null |
System.ArgumentException | The dbName parameter is an empty string or The connectionString parameter is an empty string |
SchemaException | The database is not found. |
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