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

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