VDN (VESN data Net) platform is a set of Internet database drive as the core system, is following the pb.net of another Internet data high-speed transmission system, VDN the greatest features of simple, high-speed, safe, rich.
So far VDN supports SQL Server (2000-2008), ORACLE (9I and above), and data that can be connected via ODBC (e.g. MySQL), the following example shows how the PB program connects to various databases via VDN. For more detailed parameters, please see the Appendix parameter description.
First configure the database with the background settings for the parameters, so that the client only need to set the name of the book is OK, no longer know any of the rest of the database information.
First, SQL Server
Modify the SQLCA connection parameters of the PB program:
|
SQLCA. DBMS = "OLE DB"
SQLCA. Autocommit = False
SQLCA. Lock = "RC"//or RU Oracle do not add this line
SQLCA. Dbparm = "provider= ' vesndb.net ',"
SQLCA. dbparm+= "providerstring= ' database= test book set; deskey=topany; ',"
SQLCA. dbparm+= "datasource= ' http://192.168.111.130/VDNDemo/'" |
Note:
192.168.111.130 Modify the IP address or domain name of your server.
Second, ORACLE
Oracle's syntax is basically c/S, and the call to the stored procedure needs to be modified slightly.
|
SQLCA. DBMS = "OLE DB"
SQLCA. Autocommit = False
SQLCA. Dbparm = "provider= ' vesndb.net ',"
SQLCA. dbparm+= "providerstring= ' Database=erp;deskey=topany; ',"
SQLCA. dbparm+= "datasource= ' http://192.168.111.130/VDNDemo/'" |
Third, MySQL
MySQL implementation of MySQL three-layer distributed call through VDN server call server-side ODBC driver
|
SQLCA. DBMS = "OLE DB"
SQLCA. Autocommit = False
SQLCA. Dbparm = "provider= ' vesndb.net ',"
SQLCA. dbparm+= "providerstring= ' Database=his;deskey=topany; ',"
SQLCA. dbparm+= "datasource= ' http://192.168.111.130/VDNDemo/'" |
Appendix: Dbparms Attribute Interpretation
|
Property |
Child properties |
Have to |
Value (example) |
Description |
|
ProviderString |
Database |
Is |
Test a set of books |
Specify the set of accounts, corresponding to the server's account sets |
|
Deskey |
Is |
Deskey=topany |
Encrypted with the server interactive keyword (see the Security Settings section), it is recommended that you modify the values to be customized to enhance security. |
|
AppName |
Whether |
Appname=vdn |
AppName Program name host client name these two options are optional, can not be filled out, and need to be used again. It will be displayed in the connection process of SQL Server after use. |
|
Host |
Whether |
Host=pcname |
|
Doublequote |
Whether |
Default 0
Doublequote=1 |
A value of 1 o'clock will execute: SET quoted_identifier OFF, you can use double quotes in the statement, acting with delimitidentifiertodb= ' Yes '. To set delimitidentifier= ' No ' at this time (default, do not fill in) |
|
Concatnull |
Whether |
Default 1
Concatnull=1 |
The value is 1 (the default) when executed: SET concat_null_yields_null OFF operation, with a NULL string to return a non-empty string, note that the direct connection to the private interface is also the case, so this parameter can not be filled out, to keep the default on the line, Set concatnull=0 unless you want to return NULL when connecting to a null string |
|
Convertwchar |
Whether |
Default 0
Convertwchar=1 |
This parameter is set for a bug in PB9, PB10 and above do not need to set this parameter. If you use PB9 and SQL Server uses a nvarchar,oracle that uses a double-byte data type such as VARCHAR2, you need to set this value, otherwise: PB9 reading the Double-byte field will produce garbled characters. Mainly in dynamic DataWindow and Embedded SQL statements. |
|
Ignorepbtable |
Whether |
Default 0
Ignorepbtable=1 |
A value of 1 o'clock VDN ignores the retrieval of the PB system table (PBCATTBL). For dynamic DataWindow, speed is improved obviously. |
|
Plsqlrset |
Whether |
Plsqlrset=1 |
If you use a stored procedure as a DataWindow data source when connecting to Oracle, the return DataSet (Sys_refcursor) must be prefixed with this parameter |
|
Traditional |
Whether |
Default 0
Traditional=1 |
Set this value to 1 when using a traditional serial number |
|
Encrypt |
Whether |
Default 0
Encrypt=1 |
Security is further enhanced by encrypting SQL statements destined for the server.
Encryption processing can have a certain effect on the speed of the system, as appropriate. |
|
Updateproject |
Whether |
To detect an upgrade of the VDN demo version:
UPDATEPROJECT=VDN Demo Version
Only detect upgrades for VDN clients:
Updateproject=vesndataclient |
Detects upgrade information for the specified project, and automatically calls the upgrade system to upgrade if a new version is found.
See: Smart Upgrade section
Supported after version V2015.6.5.1 |
|
Debug |
No |
Whether |
Debug=1 PB Development Model
Debug=0 official operation |
Specify the operating mode of the system, set debug=1 during PB debug run |
|
Pbtrimcharcolumns |
No |
Whether |
pbtrimcharcolumns= ' Yes ' |
If you are using a column of type char, you can use this parameter to automatically remove the trailing space when retrieving a column of type char. |
|
Recheckrows |
No |
Whether |
Recheckrows=1 |
If you use the Insert\delete\update trigger (Trigger), you must add this parameter, or the update will have an exception. |
VDN platform various database connection settings