We use a lot of dev databases within the company and I have a script that reads all databases and creates and xml connections file for use by another software package. I want to know if its possible to apply the same principle to dbForge by writing connection entries directly into the windows registry. Is it possible to get information on what registry keys are used to support connections.
Or is there an alternative method available.
Thanks
Creating Connections via code
Re: Creating Connections via code
Hello,
You could find dbForge Connections in registry branch:
You could also set custom connections in command line directly.
For example:
For getting more detail information about command line use the command:
Best regards,
Yuri.
You could find dbForge Connections in registry branch:
Code: Select all
HKEY_CURRENT_USER\SOFTWARE\Devart\dbForge Common Settings\Connections\PostgreSql
For example:
Code: Select all
set p=C:\Program Files\Devart\dbForge Data Compare for PostgreSQL
set ds=/source connection:"Host=db;Port=5444;Database=dc1;User ID=postgres;Password=postgres;"
set dt=/target connection:"Host=db;Port=5444;Database=dc2;User ID=postgres;Password=postgres;"
"%p%\datacompare.com" /datacompare %ds% %dt%
Code: Select all
set p=C:\Program Files\Devart\dbForge Data Compare for PostgreSQL
"%p%\datacompare.com" /datacompare /?
Yuri.
Re: Creating Connections via code
Thanks YuriP.