4D v16Using a connection string |
||
|
4D v16
Using a connection string
Using a connection string
When you use the ODBC API in PHP, Python script, Java, C, C++ or any programming language, you can connect without using a DSN by means of a connection string. Example using Python: import pyodbc This example uses the following keywords:
Keywords are not case sensitive and can be used in any order, with the exception of "Driver", which must come first if it is used. Whenever you do not specify a keyword, its default value is used. A connection string can also use a DSN. When you create a DSN using the 4D Configuration window, it saves the settings in the registry or in the odbc.ini file using the same keywords. For example, if you use the connection string: conn=pyodbc.connect('DSN=My_4D_DSN') ... it is the equivalent of a connection string using all the same values set in the 'My_4D_DSN' DSN. A description of all the keywords used in a connection string, or when configuring a DSN, is shown below.
|
EIGENSCHAFTEN
Produkt: 4D
GESCHICHTE
ARTIKELVERWENDUNG
4D ODBC Driver ( 4D v16) |