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

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