|
Creates a new engine data source name (DSN).
Header file: CATALOG.HRequires: W3DBAV78.DLL or higher version
PRESULT PvCreateDSN( BTI_LONG hConnection, BTI_CHAR_PTR pdsnName, BTI_CHAR_PTR pdsnDesc, BTI_CHAR_PTR dsnDBQ, BTI_LONG openMode);
|
In
|
hConnection
|
Connection handle that identifies the server. Connection handles are obtained with the PvConnectServer() function.
|
|
In
|
pdsnName
|
Name for the new DSN.
|
|
In
|
pdsnDesc
|
Description for the new DSN.
|
|
In
|
dsnDBQ
|
Database name to which this DSN will connect. This name must already exist. To create a database name, see PvCreateDatabase().
|
|
In
|
OpenMode
|
Open mode for the DSN, which is one of the following:
NORMAL_MODE, ACCELERATED_MODE, READONLY_MODE, or EXCLUSIVE_MODE
|
This function creates engine DSNs only. To create a client DSN, you must use the ODBC API.
The following preconditions must be met:
PvStart()
PvConnectServer()
PvListDSNs()
PvModifyDSN()
PvGetDSN()
PvGetDSNEx()
PvDeleteDSN()
PvCountDSNs()
PvStop()
|
Chapter contents
Prev topic: PvCreateDictionary()
|