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

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