PreviousDTI Programmer's Guide (v10) Next

PvDropDatabase()

Chapter contents

Deletes a specified entry from dnames.cfg.

Header file: CATALOG.H
Requires: W3DBAV75.DLL or higher version

Syntax

BTI_SINT PvDropDatabase( 
	BTI_LONG           hConnection, 
	BTI_CHAR_PTR       dbName, 
	BTI_CHAR           option); 

Arguments

In
hConnection
Connection handle that identifies the server. Connection handles are obtained with the PvConnectServer() function.
In
dbName
Name of the database. A list of all database names for a particular server is obtained with the PvGetDbNamesData() function. A single database name from the resulting list can be obtained with the PvGetDbName() function.
In
option
Bit mask that specifies options. Set the low order bit to one (0001h) if you want data files to be deleted in addition to the database name. Otherwise, only the database name will be deleted but data and DDF files will remain.

Return Values

P_OK
The operation was successful.
P_E_INVALID_HANDLE
Invalid connection handle.
P_E_NULL_PTR
Call with NULL pointer
P_E_ACCESS_RIGHT
Insufficient access right for the operation
P_E_NOT_EXIST
Named database does not exist.
P_E_FAIL
Failed for other reasons.

Remarks

The following preconditions must be met:

See Also

PvStart()
PvConnectServer()
PvCreateDatabase()
PvModifyDatabase()
PvDisconnect()
PvStop()


Chapter contents
Book contents

Prev topic: PvDisconnectSQLConnection()
Next topic: PvDropGroup()