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

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