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

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