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 (1)
Thursday, Jul 14 2022

I really like what Nigel said to Angelia in the film.
When your personal life is gone, remember to notify me, it means you are going to be promoted.
I very much agree with this sentence, life and work, we choose to work because of life, and work makes us neglect life. When you want to get promoted, you have to sacrifice more of your private time to work.
Choice is a very interesting thing, and when you make a choice, it also means that you will lose something very pity.

0

Find Articles by Tag

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