Ms Sql Server 2005 with TCP/IP
Posted: Fri 09 Jun 2006 13:49
Dear Fried,
I´m a customer. I´m Development Manager of Freire Informática Brazil. We bought the MS SQL DBX Driver from you.
We are having some problems with MS SQL Server 2005 when trying to connect with tcp/ip. With named pipes we don’t have any problems. Therefore, we might connect with tcp/ip.
My connection params are:
SQLConnection.DriverName := 'SQLServer';
SQLConnection.LibraryName := 'dbexpsda.dll';
SQLConnection.VendorLib := 'sqloledb.dll';
SQLConnection.GetDriverFunc := 'getSQLDriverSQLServer';
SQLConnection.Params.Clear;
SQLConnection.Params.Add('User_Name=MyName');
SQLConnection.Params.Add('Password=MyPassword');
SQLConnection.Params.Add('HostName=MyServer');
SQLConnection.Params.Add('Database=MyDatabase');
The driver raises the error: [DBNETLIB][ConnectionOpen(Invalid Instance()).]Invalid Connection
If I change to named pipes like:
SQLConnection.DriverName := 'SQLServer';
SQLConnection.LibraryName := 'dbexpsda.dll';
SQLConnection.VendorLib := 'sqloledb.dll';
SQLConnection.GetDriverFunc := 'getSQLDriverSQLServer';
SQLConnection.Params.Clear;
SQLConnection.Params.Add('User_Name=MyName');
SQLConnection.Params.Add('Password=MyPassword');
SQLConnection.Params.Add('HostName=MyServer\');
SQLConnection.Params.Add('Database=MyDatabase');
The connection is sucessful.
How can i resolve my problem?
Thanks
Thiago Alves Costa
Freire Informática - http://www.freire.com.br
[email protected]
I´m a customer. I´m Development Manager of Freire Informática Brazil. We bought the MS SQL DBX Driver from you.
We are having some problems with MS SQL Server 2005 when trying to connect with tcp/ip. With named pipes we don’t have any problems. Therefore, we might connect with tcp/ip.
My connection params are:
SQLConnection.DriverName := 'SQLServer';
SQLConnection.LibraryName := 'dbexpsda.dll';
SQLConnection.VendorLib := 'sqloledb.dll';
SQLConnection.GetDriverFunc := 'getSQLDriverSQLServer';
SQLConnection.Params.Clear;
SQLConnection.Params.Add('User_Name=MyName');
SQLConnection.Params.Add('Password=MyPassword');
SQLConnection.Params.Add('HostName=MyServer');
SQLConnection.Params.Add('Database=MyDatabase');
The driver raises the error: [DBNETLIB][ConnectionOpen(Invalid Instance()).]Invalid Connection
If I change to named pipes like:
SQLConnection.DriverName := 'SQLServer';
SQLConnection.LibraryName := 'dbexpsda.dll';
SQLConnection.VendorLib := 'sqloledb.dll';
SQLConnection.GetDriverFunc := 'getSQLDriverSQLServer';
SQLConnection.Params.Clear;
SQLConnection.Params.Add('User_Name=MyName');
SQLConnection.Params.Add('Password=MyPassword');
SQLConnection.Params.Add('HostName=MyServer\');
SQLConnection.Params.Add('Database=MyDatabase');
The connection is sucessful.
How can i resolve my problem?
Thanks
Thiago Alves Costa
Freire Informática - http://www.freire.com.br
[email protected]