Professional Documents
Culture Documents
Show
Home > Connecting to an SQL database server > How to connect to an SQL database server
How to connect to a SQL database server
Topic group Related topics
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 1/21
31/1/2021 How to connect to an SQL database server
Parameters may vary according to vendor.
Parameters in bold cannot be changed.
To accommodate record locking in a Windows NT server environment, it is necessary to set the BDE's localShare parameter to "true".
Note
If you're creating a new ODBC alias, you must define its DSN before you can connect to that database.
You’ll find complete instructions in the BDE Administrator Help system. Press F1 with the cursor in any parameter for information on that parameter.
Steps needed to load an ODBC driver to use with ADO support in dBASE PLUS 9. This paper assumes the user will be using Windows 7 or 8 – 64 bit operating
systems and is detailing how to set the environment with MySQL drivers.
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 2/21
31/1/2021 How to connect to an SQL database server
Download the driver from Oracle for the MySQL driver 64-bit. This can be easily found by typing in Google: ADO MYSQL Driver and it will take
you to the driver locations for download.
Once the driver has been downloaded (in this case an .MSI) run it and follow the installation steps next.
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 3/21
31/1/2021 How to connect to an SQL database server
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 4/21
31/1/2021 How to connect to an SQL database server
Click the ADD button to add a new ODBC data Select the MySQL ODBC driver and click the
source Finish button
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 5/21
31/1/2021 How to connect to an SQL database server
Put in the Data Source Name to Fill in the IP and Port address for
be used for the connection the MySQL database. Then input
the User name, Password, and
Database to connect.
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 6/21
31/1/2021 How to connect to an SQL database server
Right-mouse click
on the .UDL file
and select the
Properties menu
item.
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 7/21
31/1/2021 How to connect to an SQL database server
This opens up the configuation setting for the Now select the ODBC provider and click the next
UDL file. Click on the Provider Tab to continue. button. Note: This could take you to security,
however, you want to click on the Connection tab
if the security panel looks correct.
Test the
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 8/21
31/1/2021 How to connect to an SQL database server
connection. You
should see
Succeeded and then
press the OK
button. Next press
the OK button on the
Properties dialog to
continue.
Open dBASE PLUS 9 and click on the Menu Properties|Deskotp Properties menu item
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 9/21
31/1/2021 How to connect to an SQL database server
Now use the UDL file that was setup in the prior steps.
Chose the UDL file listed on the Desktop Click the Add button and then click the Apply
button
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 10/21
31/1/2021 How to connect to an SQL database server
Type in the name of the Alias then click the This time click on the Connection statement radio
Pencil icon. button. Then click the Data Link Properties
button.
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 11/21
31/1/2021 How to connect to an SQL database server
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 12/21
31/1/2021 How to connect to an SQL database server
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 13/21
31/1/2021 How to connect to an SQL database server
Select it and then press the OK button. The connection dialog is displayed to check your
security credentials.
NOTE: The reason for this is because the person
could leave the process at any time and return at a
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 14/21
31/1/2021 How to connect to an SQL database server
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 15/21
31/1/2021 How to connect to an SQL database server
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 16/21
31/1/2021 How to connect to an SQL database server
Create a new form, but do not use the Wizard. Now go to the ADO Access tab on the Component palette.
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 17/21
31/1/2021 How to connect to an SQL database server
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 18/21
31/1/2021 How to connect to an SQL database server
Set the Database Name property to the property Set the Database Name to the Connection on the
we defined in the UDL or Database Connection ADOTable and input the Table Name property
String process that was completed earlier. Then and then set the Active property to True.
set the Active property to True.
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 19/21
31/1/2021 How to connect to an SQL database server
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 20/21
31/1/2021 How to connect to an SQL database server
https://www.dbase.com/help/9_4/Installing/IDH_INSTALL_SQLCONNECT.htm 21/21