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

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