Get latest SQL Native Client (SQL 2005)

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
oodesigns
Posts: 26
Joined: Wed 04 Oct 2006 01:41

Get latest SQL Native Client (SQL 2005)

Post by oodesigns » Tue 23 Oct 2007 08:03

Hi

In another message I saw someone was getting the error TCP Client: You have been forceable disconnected. Your answer was to get the lastest SQL Natvie client. Where do you get this from? I am not using the connection string when connecting just setting server,database. Should I be setting something else to make it more reliable.

Mike

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 23 Oct 2007 14:53

You can download it by this link. Set the TMSConnection.Options.Provider to prNativeClient to make sure that this provider is used by your application.

oodesigns
Posts: 26
Joined: Wed 04 Oct 2006 01:41

Post by oodesigns » Wed 24 Oct 2007 06:32

I am using Version 3 due to known issues with 4 and I do not have that option.

What else can I set?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 24 Oct 2007 14:16

To do the same with SDAC 3, you should add the Provider parameter to TMSConnection.ConnectString:

Code: Select all

  Provider=SQLNCLI.1  // to use SQL Native Client provider

Code: Select all

  Provider=SQLOLEDB.1  // to use SQL OLEDB provider

Post Reply