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

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