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

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