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

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