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

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