Connect without write registry values

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
anordlun
Posts: 15
Joined: Thu 24 Feb 2005 08:09

Connect without write registry values

Post by anordlun » Thu 31 May 2007 14:51

Is there a possibility to connect to a server without changing registryvalues "\Software\Microsoft\MSSQLServer\Client\ConnectTo"

We are installing our application on strict networks, and we are not allowed to write in the registry

//Andreas

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Fri 01 Jun 2007 11:04

You do not need to change any registry values to connect to SQL Server using DbxSda.
Just specify the server you want to connect to in the following manner:
SQLConnection.Params.Add('HostName=MyServer');
For more information please see the ReadMe.html file.
You can find this file in the DbxSda installation directory.

anordlun
Posts: 15
Joined: Thu 24 Feb 2005 08:09

Post by anordlun » Fri 01 Jun 2007 14:37

Soooo easy, sooo easy... Thanks.

I added an alias to the server in this parameter, and therefore I had to add server connection definition in the registry.

Thats now history, Thanks again Jackson...

Post Reply