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

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