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

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