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

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