How to find the information you need
When you work with PowerBuilder, you can connect to a database in
the development environment or in an application script.
This book describes how to connect to your database in the
PowerBuilder development environment.
For information about connecting to a database in a PowerBuilder
application script, see Application Techniques.
Basic connection
procedure
The following table gives an overview of the connection procedure
and indicates where you can find detailed information about each
step.
|
Step |
Action |
Details |
See |
|---|---|---|---|
|
1 |
(Optional) Get an introduction to database |
If necessary, learn more about how PowerBuilder |
Chapter 1 (this chapter) |
|
2 |
Prepare to use the data source or database before |
Outside PowerBuilder, install the required network, |
For ODBC data sources: Using the ODBC For OLE DB data sources: Using the OLE DB For ADO.NET data sources: Using the ADO.NET For native database interfaces: Using Native Database |
|
3 |
Install the ODBC driver, OLE DB data provider, |
Install the driver, database provider, or native |
For a list of what is supported on your platform: |
|
4 |
Define the data source (ODBC connections and some OLE |
Create the required configuration for a data source |
For ODBC data sources: Using the ODBC |
|
5 |
Define the database interface |
Create the database profile |
For ODBC data sources: Using the ODBC For OLE DB data sources: Using the OLE DB For ADO.NET data sources: Using the ADO.NET For native database interfaces: Using Native Database |
|
7 |
Connect to the data source or database |
Access the data in PowerBuilder |
|
|
8 |
(Optional) Set additional connection |
If necessary, set DBParm parameters and database |
For procedures: Setting For DBParm For database |
|
9 |
(Optional) Troubleshoot the data |
If necessary, use the trace tools to troubleshoot |