FreeTDS libraries

Forum related to MS SQL Server

Moderators: gto, cipto_kh, EgonHugeist

Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 06.08.2011, 22:27

FreeTDS libraries

Postby mario13 » 08.10.2012, 15:11

I'm a bit confused about the FreeTDS libraries to use. Form SVN revision 1907, in ZPlainDbLibDriver.pas the libraries are:
NTWDBLIB_DLL_LOCATION ='ntwdblib.dll';

- In general it should be noted that FreeTDS doesn't work with Named Pipes, it only works with a TCP/IP connection on a fixed port like 1433.

- In Windows, the msdblibr.dll requires msvcrt100.dll, but it can be changed to msdblibd.dll which doesn't have this requirement (I think this comment should apperar in ZPlainDbLibDriver.pas with both libraries, one commented out, the other not).

- In Debian Testing, from package manager, I have this related libraries (the first three are from FreeTDS project) from package libct4 from package libsybd5 from package tdsodbc from package php5-sybase from package php5-sybase

In Debian Testing, the command line utility tsql depends on and could connect ok to MSSQL 2000. On the other hand, the command line utility sqsh depends on and also works ok.

So, there is no '', but if I replace in ZPlainDbLibDriver.pas
Zeos (with protocol 'FreeTDS_MsSQL-2000') could connect and works OK.
May be this should be modified in Zeos sources.

(Side note: is the library used in the new TMSSQLConnection of Lazarus, in source file dblib.pas of FPC. For Windows, in this file it use 'dblib.dll' which was impossible to find, and the ones -with other names- provided with Zeos doesn't work. It appears that dblib is an older name.)

Return to “MS SQL Server”

Who is online

Users browsing this forum: No registered users and 1 guest