freetds

Trouble installing pymssql on Windows

旧巷老猫 提交于 2019-12-22 08:47:19
问题 I can't find great support for pymssql installation support on Windows. I'm trying to connect to an enterprise database through another employee's python wrapper. This wrapper requires my installing of pymssql. The RTFM on this doesn't have very explicit instructions on the installation process of FreeTDS and OpenSSL. Steps to Install All downloaded files (FreeTDS and OpenSSL) are from the RTFM link mentioned above. There is mention of adding both downloads to a C:\Program Files folder and

Linux系统下ThinkPHP5链接MsSQL

天大地大妈咪最大 提交于 2019-12-21 15:48:19
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 案例 CentOS6.8系统ThinkPHP5链接MsSQL数据库。 分析 ThinkPHP5提供了Mysql、Pgsql、Sqlite和Sqlsrv四种数据库驱动。Window系统下有现成的php_sqlsrv.dll扩展可用,但Linux系统中没有(本人没有找到)。 尝试1未成功,写来以备其它用途 安装freetds wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-patched.tar.gz tar -zxvf freetds-patched.tar.gz cd freetds-* ./configure --prefix=/usr/local/freetds --with-tdsver=auto --enable-msdblib --with-gnu-ld --enable-shared --enable-static make && make install 安装mssql wget http://cn2.php.net/distributions/php-5.6.22.tar.gz tar -zxvf php-5.6.22.tar.gz cd php-*/ext/mssql /usr/local/php/bin/phpize .

php 连接sqlserver2008 mssql 官方 windows

浪尽此生 提交于 2019-12-21 15:33:46
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1、下载 https://www.microsoft.com/en-us/download/confirmation.aspx?id=20098 先看下自己的php版本号,然后放置对应的dll文件 E:\www\dingshang\shell>php -v PHP 5.6.27 (cli) (built: Oct 14 2016 10:22:59) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies 我这里是5.6的,然后把上面的都下载下来,找到对应的文件 注意选用pdo的 2、配置: ; extension folders as well as the separate PECL DLL download (PHP 5). ; Be sure to appropriately set the extension extension=php_pdo_sqlsrv_56_nts.dll ;extension=php_bz2.dll extension=php_curl.dll extension=php_imagick.dll ;extension=php

linux下 采用freetds 连接sqlserver2008

狂风中的少年 提交于 2019-12-21 15:33:10
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> php7 yum install php71w-pdo_dblib 1、确认PHP版本 我一开始是PHP7 无法安装 先删除 yum remove php* php-common 2、重新安装php 一定要用yum 不然得烦死了 yum install php php-devel php-comm php-pdo 3、下载freetds # wget ftp://ftp.freetds.org/pub/freetds/stable/freetds-patched.tar.gz # tar -zxvf freetds-patched.tar.gz # cd freetds-0.95 4、编译和配置 # ./configure --prefix=/usr/local/freetds --with-tdsver=7.3 --enable-msdblib # make && make install 5、验证版本和测试是否可以连接 # /usr/local/freetds/bin/tsql -C # /usr/local/freetds/bin/tsql -H 数据库服务器IP -p 端口号 -U 用户名 -P 密码 6、配置pdo_dblib 并加入到php_ini.d中去 # /usr/local/php/bin

PHP PDO (MSSQL) can not get OUPUT parameters

蓝咒 提交于 2019-12-19 22:34:12
问题 I'm trying to get OUTPUT using bindParam (PHP PDO). The PHP PDO library is the FreeTDS for MS SQL driver. Whatever I do, I can't seem to get the "OUTPUT" in the the bound params as suggested on php.net. I've verified I can call the EXEC and return a result set (using a select), but the OUTPUT parameters never change. PHP Code. $this->db is a PDO object $stmt = $this->db->prepare("EXEC ".$this->db_schema."[".$this->procedure."] :error_num, :error_msg"); $error_num = 0; $error_msg = ''; $stmt-

Using typed bound parameters with PHP PDO-ODBC, unixODBC and FreeTDS

时光毁灭记忆、已成空白 提交于 2019-12-19 19:12:59
问题 I'm using the following setup to access a MS-SQL database from a PHP application RedHat Enterprise Linux 5 PHP 5.2.14 with PDO and PDO_ODBC unixODBC 2.2.11 FreeTDS 0.82.1.dev.20100810 Unparametrized queries work fine. The only issue is being forced to close cursor on single result statements (with PDOStatment::closeCursor) to avoid "0 [FreeTDS][SQL Server] Invalid cursor state (SQLSTATE=24000)" errors. But I'm having a major issue with typed bound parameter. When using code like this: $stmt =

Using typed bound parameters with PHP PDO-ODBC, unixODBC and FreeTDS

↘锁芯ラ 提交于 2019-12-19 19:12:15
问题 I'm using the following setup to access a MS-SQL database from a PHP application RedHat Enterprise Linux 5 PHP 5.2.14 with PDO and PDO_ODBC unixODBC 2.2.11 FreeTDS 0.82.1.dev.20100810 Unparametrized queries work fine. The only issue is being forced to close cursor on single result statements (with PDOStatment::closeCursor) to avoid "0 [FreeTDS][SQL Server] Invalid cursor state (SQLSTATE=24000)" errors. But I'm having a major issue with typed bound parameter. When using code like this: $stmt =

Using typed bound parameters with PHP PDO-ODBC, unixODBC and FreeTDS

柔情痞子 提交于 2019-12-19 19:11:15
问题 I'm using the following setup to access a MS-SQL database from a PHP application RedHat Enterprise Linux 5 PHP 5.2.14 with PDO and PDO_ODBC unixODBC 2.2.11 FreeTDS 0.82.1.dev.20100810 Unparametrized queries work fine. The only issue is being forced to close cursor on single result statements (with PDOStatment::closeCursor) to avoid "0 [FreeTDS][SQL Server] Invalid cursor state (SQLSTATE=24000)" errors. But I'm having a major issue with typed bound parameter. When using code like this: $stmt =

Django <-> SQL Server 2005, text encoding problem

南楼画角 提交于 2019-12-19 08:12:32
问题 I'm trying to store Django data on MS SQL Server 2005 using: http://code.google.com/p/django-pyodbc/ (pyodbc + FreeTDS) As long as I'm storing string consist of ASCII characters everything is ok. When I'm using unicode (ex. '\xc5\x82'), django throws ProgrammingError on: ProgrammingError at /admin/cli/punktrejestracji/add/ ('42000', '[42000] [FreeTDS][SQL Server]The incoming tabular data stream (TDS) protocol stream is incorrect. The stream ended unexpectedly. (4002) (SQLExecDirectW)') last

Missing letters of database objects being returned in DBI SQL Server ODBC connection

谁说胖子不能爱 提交于 2019-12-14 03:54:31
问题 Unfortunately, I will not be able to create a good repro for this issue without sharing confidential creds to the database I am having issues with. Hopefully I have enough information below to flag any obvious problems that ODBC experts will understand. Background I am running a MacBook Pro with the following specs: Model Name: MacBook Pro Model Identifier: MacBookPro15,1 Processor Name: 6-Core Intel Core i7 Processor Speed: 2.6 GHz Number of Processors: 1 Total Number of Cores: 6 L2 Cache