How to connect SQLServer2005 with SQL Native Client
Posted: Thu 31 May 2007 07:19
I'm a customer.I'm developer of COMPUTER INSTITUTE OF JAPAN.
I bought the MS SQL DBX Driver from you.
I am having some probrems with MS SQL Server 2005 when trying to connect with SQL Native Client.
Using
Programming Software is Delphi7.
dbexpsda.dll version is 3.10.8.0.
My Connection Parameters are under.
----------------------------------------------------------------------
dbsConn: TCRSQLConnection;
with dbsConn do
begin
DriverName := 'SQL Native Client';
GetDriverFunc := 'getSQLDriverSQLServer';
LibraryName := 'dbexpsda.dll';
VendorLib := 'SQLNCLI';
Params.Clear;
Params.Add('Database=MyDatabaseName');
Params.Add('Server=MyPrinciparServer');
Params.Add('FailoverPartner=MyMirrorServer');
Params.Add('UID=Myname');
Params.Add('PWD=MyPassword');
end;
dbsConn.Connected := True;
---------------------------------------------------------------------
I cannot connect Database.
If I do Parameters change
from 'Server' to 'HostName'
from 'UID' to 'User_name'
from 'PWD' to 'password'
I can connect Database.
But, 'FailoverPartner' is not recognized.
So, Even if I do failover, the server is not switched.
How can I resolve my probrem?
Thanks
Aya Nakano
[email protected]
I bought the MS SQL DBX Driver from you.
I am having some probrems with MS SQL Server 2005 when trying to connect with SQL Native Client.
Using
Programming Software is Delphi7.
dbexpsda.dll version is 3.10.8.0.
My Connection Parameters are under.
----------------------------------------------------------------------
dbsConn: TCRSQLConnection;
with dbsConn do
begin
DriverName := 'SQL Native Client';
GetDriverFunc := 'getSQLDriverSQLServer';
LibraryName := 'dbexpsda.dll';
VendorLib := 'SQLNCLI';
Params.Clear;
Params.Add('Database=MyDatabaseName');
Params.Add('Server=MyPrinciparServer');
Params.Add('FailoverPartner=MyMirrorServer');
Params.Add('UID=Myname');
Params.Add('PWD=MyPassword');
end;
dbsConn.Connected := True;
---------------------------------------------------------------------
I cannot connect Database.
If I do Parameters change
from 'Server' to 'HostName'
from 'UID' to 'User_name'
from 'PWD' to 'password'
I can connect Database.
But, 'FailoverPartner' is not recognized.
So, Even if I do failover, the server is not switched.
How can I resolve my probrem?
Thanks
Aya Nakano
[email protected]