asp.net.ph

IDbConnection.ChangeDatabase Method

System.Data Namespace   IDbConnection Class


Changes the current database for an open IDbConnection.

[ VB ]
NotOverridable Public Sub ChangeDatabase ( _
   ByVal databaseName As String _
)

[ C# ]
public void ChangeDatabase (
   string databaseName
);

[ C++ ]
public: __sealed void ChangeDatabase (
   String* databaseName
);

[ C++ ]
public function ChangeDatabase (
   databaseName : String
);

Parameters

databaseName
The database name.

Exceptions


Exception Type Condition
ArgumentException Occurs when the database name is not valid.
InvalidOperationException Occurs when the connection is not open.

Remarks

The value supplied in the databaseName parameter must be a valid database name. The databaseName parameter cannot contain a null value, be empty, or contain a string with only blank characters.

See Also

IDbConnection Members   Database Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph