PvModifyDSN2()
Modifies an existing data source name. This function is the same as PvModifyDSN() except that the encoding option for data is also specified.
Header File: catalog.h (See also Header Files)
Function First Available In Library: w3dbav90.dll (Windows), libpsqldti.so (Linux) (See also Link Libraries)
This function is deprecated in Pervasive PSQL v11 and higher versions. Use the ODBC API to work with client DSNs.
Syntax
BTI_API PvModifyDSN(
BTI_LONG       hConnection,
BTI_CHAR_PTR   dsnName,
BTI_CHAR_PTR   dsnDesc,
BTI_CHAR_PTR   dsnDBQ,
BTI_LONG       openMode,
BTI_LONG       translate);
Arguments
 
See also DSN Open Mode in SQL Engine Reference.
See also Encoding Translation in SQL Engine Reference. Note that DSNFLAG_DEFAULT corresponds to the “None” encoding option in ODBC Administrator.
Return Values
 
Remarks
The following preconditions must be met:
Connection established by PvConnectServer() or if you are performing the operation on a local machine, P_LOCAL_DB_CONNECTION may be used as the connection handle.
See Also
PvConnectServer()
PvCountDSNs()
PvCreateDatabase2()
PvCreateDSN2()
PvDeleteDSN()
PvGetDSN()
PvGetDSNEx2()
PvListDSNs()
PvStart() ok
PvStop() ok