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

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