Tech Articles


Create Multiple DSNs from a single PostgreSQL Driver


FYI -

Summary:
   You can create multiple databases from a single PostgreSQL driver.

Details:
PowerBuilder R2019R3
PostgreSQL 12
Windows 10


These instructions assume that at least one PostgreSQL driver has been successfully installed onto the Windows 10 platform.

Open the Windows 32 bit ODBC Administrator.


Click on the SYSTEM DSN tabpage.

Click ADD.

Scroll down and select "PostgreSQL Unicode".

Click FINISH.

This opens up the baseline configuration.
 - In my case I have previously put data into the baseline DSN.
 - The first time you open this SETUP window, the fields will all be blank.

 

At this point and ONLY at this point, the Data Source field can be renamed.

Change the Data Source field/name, as well as the Description, to something unique and appropriate:

Populate all fields appropriately.

Click SAVE.

Now when you examine the set of System DSNs, the new DSN appears as a separate entity.
- Note that there are two new DSNs listed.

 

 

This new DSN can be used in the PowerBuilder ODBC database Profile:

Be sure to set up all of the tabpages in the PROFILE correctly for a PG database.

Enter the CatalogTable Owner in lower case to match the database name.






   Because of the multiple, separate DSNs, we can have multiple database PROFILES in PowerBuilder.

 

Comments (0)
There are no comments posted here yet

Find Articles by Tag

Interface Platform Database Database Table Data PDF Event Handling Elevate Conference .NET Std Framework DragDrop TreeView Azure Automated Testing Source Control Export OrcaScript Model NativePDF SVN DataWindow JSON TortoiseGit PowerServer Mobile Expression COM XML Event Charts SqlModelMapper Deployment OAuth SDK RibbonBar Builder SQL Server TLS/SSL Database Painter InfoMaker BLOB Class Database Table Schema OLE Graph Encoding IDE PowerBuilder Compiler Error Database Connection CI/CD SnapObjects File Branch & Merge Mobile Oracle Open Source Web Service Proxy Performance Resize Application GhostScript Authorization Script Text Export JSON PBVM CoderObject Validation DevOps Event Handler Debugger SnapDevelop .NET Assembly Excel Git Bug Database Object SOAP Jenkins Configuration PBNI SQL TFS Array Visual Studio Testing PFC SqlExecutor PBDOM 64-bit Debugging Linux OS UI Modernization Window Debug Data ActiveX RibbonBar WinAPI Messagging Encryption OAuth 2.0 Repository Sort PowerBuilder Source Code RESTClient HTTPClient License Menu Outlook JSON Filter Syntax Import Windows OS ODBC WebBrowser .NET DataStore Authentication Transaction Design DLL Import JSON REST Service Icon DataWindow Web API RichTextEdit Control iOS Database Profile PDFlib PowerServer Web CrypterObject PowerBuilder (Appeon) JSONParser UI Themes Android MessageBox External Functions DataType Windows 10 Icons PostgreSQL Stored Procedure Trial Migration Installation PowerScript (PS) Database Table 32-bit PostgreSQL ODBC driver API Variable UI JSONGenerator C#