First; a bit of background. I did this on a debian 3. To enable odbc in PHP, just modify the php. Note; you will want to use your own Server address. As of this writing, connections using named pipes are currently unsupported.

Uploader: Akitaur
Date Added: 6 January 2013
File Size: 6.68 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 13128
Price: Free* [*Free Regsitration Required]

First; a bit of background. Use of “Server” should be preferred over “Address” see http: Ok, so things freetds odbc wrong somewhere Usually installing from source is a freetds odbc way to go but it is more involved for the average user. If this works then the problem likely lies within the realm of what we covered here. If your package managed doesn’t have such a driver available, you have to download the FreeTDS source code and compile it.

Freetds odbc that you must leave a space between the ‘-f’ switch and the template file name. As an added feature, it will show you how to make this all work with php. Create a file named tds.

Start by setting some environment variables. Assuming you have a package manager, download and install the odbc extension for PHP freetds odbc it isn’t already installed.

Subsequently these two SQL Servers are very similar. If you freetds odbc have a package manager, you will have to compile odbc.


As of writing, the debian package tdsodbc is in unstable. The easiest way to get FreeTDS freetds odbc through your distro’s package manager, if one is available. We will focus on ldbc the odbcinst command.

Note; we freetds odbc executed previous commands as root denoted by leading ‘ ‘ character on given commands but here we execute the command as a regular user. An alternative method is to use the ‘odbcinst’ command which also comes with unixODBC.

Again we will use the odbcinst command freetds odbc. Of course; you will want a login id and password.

The “configure” options can be viewed by executing “. I would imagine they have improved somewhat. If not, you may get some other freetds odbc about connection freetds odbc or being unable to connect. If you are able to do this, you can skip to the last step of freetds odbc, creating an odbc datasource name. So create freetes DSN as the user who is going to be using it. Once you have unpacked the source typically freetds odbc something like “tar zxvf freetds The main thing to take note of is the “–with-tdsver” configure option.


This is related to the server itself or a connectivity issue firewall, routing, etc. We will use the command line tool ‘isql’. I did this on a debian 3.

Again, we start by creating a template file – this one is freetds odbc tds. Check the FreeTDS folks and freetds odbc if you can get an answer there. Brian Bruns started a open source project to provide an implementation of the TDS protocol to anyone who wanted it.

If this fails freetds odbc you may frreetds a configuration problem or you may simply be using the incorrect UserName and PWD. Unstable is a package release level of debian that corresponds to packages more stable than bleeding-edge, but not yet stable enough to be in their stable respository. In fact; so similar that the communication protocol used by client freetds odbc to communicate with these servers are virtually identical.