freetds

Missing libtdsodbc.so in freetds-dev - MSSQL on Ubuntu

℡╲_俬逩灬. 提交于 2019-11-30 03:48:49
I'm trying to get MSSQL working on Ubuntu 12.04 via ODBC, and I've followed these steps to the letter: http://jamesrossiter.wordpress.com/2011/03/08/connecting-to-microsoft-sql-server-using-odbc-from-ubuntu-server/ However, this omits both of these files that are pointed at in odbcinst.ini: Driver = /usr/lib/odbc/libtdsodbc.so Setup = /usr/lib/odbc/libtdsS.so So, I googled a bit and found this: http://ubuntuforums.org/showthread.php?t=433435&page=2 So I followed those instructions and put libtdsodbc.so in /usr/lib/odbc/, but I still get this error: Can't open lib '/usr/lib/odbc/libtdsodbc.so'

Can't Install FreeTDS via Yum Package Manager

时光总嘲笑我的痴心妄想 提交于 2019-11-29 12:22:26
问题 I tried following the instructions in the article below but it says, " No package freetds available. " http://www.hosting.com/support/linux/installing-freetds-for-linux/ This is my I/O: [root@mydomain ~]# yum search freetds Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.web-ster.com * extras: mirror.beyondhosting.net * updates: mirrors.sonic.net =============================== Matched: freetds =============================== php-mssql.x86_64 : MSSQL

ODBC query on MS SQL Server returning first 255 characters only in PHP PDO (FreeTDS)

拜拜、爱过 提交于 2019-11-29 10:46:57
I'm currently trying to pull some data from a SQL Server database view that we have restricted access to from our Linux web server. We don't need to edit the data just display it in a webpage. It all looks fine until we try to output and only get the first 255 characters of a text field. Does anyone know if this is a problem with using FreeTDS through PHP::PDO or if it should work fine? I've seen other people out there having similar problems, but there don't seem to be many answers. I'm using this as the connection string for the MS SQL db: $dbConn = new PDO("odbc:Driver=FreeTDS;DSN=OURDSN

What is TDS Protocol Version 8.0 and why should I use it?

喜你入骨 提交于 2019-11-29 09:25:30
I've been using FreeTDS with 8.0 protocol for some time to connect to a MSSQL Database, and things have worked great. But, recently, things started to not work so great. I'll spare the details. So we decided we needed to know a bit more, and I am a bit confused by the following: Does FreeTDS support Microsoft servers? Yes. Microsoft servers don't usually accept TDS 5.0 connections. Use one of versions 4.2, 7.0 or 8.0 of the protocol. See the User Guide for details. User Guide [No mention of 8.0 anywhere on the page.] So, what is TDS Protocol Version 8.0 and why should I use it? FreeTDS

PHP MS SQL Unix Driver - Microsoft or FreeTDS

陌路散爱 提交于 2019-11-29 08:24:32
I am running a LAMP server but now need to connect to MS SQL (client request). I have heard Microsoft has a driver, but can't verify if Does anyone know if the Microsoft driver is available for Unix? If not, should I just stick with FreeTDS? This appears to be recommended by PHP , however install documentation seems lacking. Any direction on either would be greatly appreciated. Sorry for the general question, I am not familiar with setting up PHP drivers. UPDATE Just for some back story, I am running an intranet from the LAMP server but needs to connect to a datasource on an external MS SQL DB

Missing libtdsodbc.so in freetds-dev - MSSQL on Ubuntu

血红的双手。 提交于 2019-11-28 23:08:17
问题 I'm trying to get MSSQL working on Ubuntu 12.04 via ODBC, and I've followed these steps to the letter: http://jamesrossiter.wordpress.com/2011/03/08/connecting-to-microsoft-sql-server-using-odbc-from-ubuntu-server/ However, this omits both of these files that are pointed at in odbcinst.ini: Driver = /usr/lib/odbc/libtdsodbc.so Setup = /usr/lib/odbc/libtdsS.so So, I googled a bit and found this: http://ubuntuforums.org/showthread.php?t=433435&page=2 So I followed those instructions and put

using pyodbc on ubuntu to insert a image field on SQL Server

你说的曾经没有我的故事 提交于 2019-11-28 19:00:29
I am using Ubuntu 9.04 I have installed the following package versions: unixodbc and unixodbc-dev: 2.2.11-16build3 tdsodbc: 0.82-4 libsybdb5: 0.82-4 freetds-common and freetds-dev: 0.82-4 python2.6-dev I have configured /etc/unixodbc.ini like this: [FreeTDS] Description = TDS driver (Sybase/MS SQL) Driver = /usr/lib/odbc/libtdsodbc.so Setup = /usr/lib/odbc/libtdsS.so CPTimeout = CPReuse = UsageCount = 2 I have configured /etc/freetds/freetds.conf like this: [global] tds version = 8.0 client charset = UTF-8 text size = 4294967295 I have grabbed pyodbc revision

PHP PDO_mssql SQLSTATE[01002] Adaptive Server connection failed (severity 9)

我怕爱的太早我们不能终老 提交于 2019-11-28 09:15:52
I'm connecting to external MSSQL database for exports from PHP55/osx and I have wierd issue. code: new \PDO("dblib:host={$hostname};dbname={$dbname}", $user, $pass); throws: SQLSTATE[01002] Adaptive Server connection failed (severity 9) but connection from CLI works correcty tsql -S hostname -U user -P pass -L dbname: locale is "cs_CZ.UTF-8" locale charset is "UTF-8" using default charset "UTF-8" 1> freetds.conf: [hostname] host = ipaddress port = 1433 tds version = 8.0 tsql -C: Version: freetds v0.91 freetds.conf directory: /usr/local/Cellar/freetds/0.91/etc MS db-lib source compatibility: no

SqlAlchemy equivalent of pyodbc connect string using FreeTDS

房东的猫 提交于 2019-11-28 04:32:48
The following works: import pyodbc pyodbc.connect('DRIVER={FreeTDS};Server=my.db.server;Database=mydb;UID=myuser;PWD=mypwd;TDS_Version=8.0;Port=1433;') The following fails: import sqlalchemy sqlalchemy.create_engine("mssql://myuser:mypwd@my.db.server:1433/mydb?driver=FreeTDS& odbc_options='TDS_Version=8.0'").connect() The error message for above is: DBAPIError: (Error) ('08001', '[08001] [unixODBC][FreeTDS][SQL Server]Unable to connect to data source (0) (SQLDriverConnectW)') None None Can someone please point me in the right direction? Is there a way I can simply tell sqlalchemy to pass a

ODBC query on MS SQL Server returning first 255 characters only in PHP PDO (FreeTDS)

北城余情 提交于 2019-11-28 04:16:46
问题 I'm currently trying to pull some data from a SQL Server database view that we have restricted access to from our Linux web server. We don't need to edit the data just display it in a webpage. It all looks fine until we try to output and only get the first 255 characters of a text field. Does anyone know if this is a problem with using FreeTDS through PHP::PDO or if it should work fine? I've seen other people out there having similar problems, but there don't seem to be many answers. I'm