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

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