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

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