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

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