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

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