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

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