asp.net.ph

OleDbConnection.ChangeDatabase Method

System.Data.OleDb Namespace   OleDbConnection Class


Changes the current database for an open OleDbConnection.

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

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

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

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

Parameters

value
The database name.

Exceptions


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

Remarks

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

See Also

OleDbConnection 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