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

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