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

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