sqlsrv

SQLSRV and multiple selects in Stored Procedure

≡放荡痞女 提交于 2019-12-01 07:06:29
问题 I have a Stored Procedured which creates a temporary table (#test), fills it with data from another table, runs 3 selects on this temporal table and drops it. The original table it's over 20 GBs big and the 3 SELECT statements contain a lot of different conditions on the original SP. I'm executing the SP from PHP using SQLSRV however I can only manage to retrieve the 2 first result sets. If I run the SP from MSSMS it will run just fine and returns the 3 resultsets as expected. But from PHP it

Install SQLSRV driver on Linux, or other UTF-8 capable driver?

放肆的年华 提交于 2019-12-01 03:44:44
SQLSRV is the only driver for PHP that is capable of storing UTF-8 strings into two-byte columns ( NVARCHAR instead of VARCHAR ) which is currently maintained and supported by Microsoft for PHP 5.2.X and 5.3.X. And I also got the link for downloading these drivers Linux SQLSRV driver download for linux but I could not configure. If someone has got idea how to configure the sqlsrv driver on linux or has some other alternative to retrieve the data from SQL server in UTF-8 format, please share. GardenRouteGold Here's a wiki post from the Microsoft Community https://github.com/Microsoft/msphpsql

Install SQLSRV driver on Linux, or other UTF-8 capable driver?

橙三吉。 提交于 2019-12-01 00:27:09
问题 SQLSRV is the only driver for PHP that is capable of storing UTF-8 strings into two-byte columns ( NVARCHAR instead of VARCHAR ) which is currently maintained and supported by Microsoft for PHP 5.2.X and 5.3.X. And I also got the link for downloading these drivers Linux SQLSRV driver download for linux but I could not configure. If someone has got idea how to configure the sqlsrv driver on linux or has some other alternative to retrieve the data from SQL server in UTF-8 format, please share.

How can I install pdo_sqlsrv on my windows 2008 Server 2008 R2? [closed]

亡梦爱人 提交于 2019-11-29 17:11:36
I am trying to use PDO to connect to a SQL Server database. I have been struggling with it for a little bit now I get this Fatal error on my page where I am trying to connect to SQL Server Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[IMSSP]: This extension requires the Microsoft SQL Server 2012 Native Client ODBC Driver to communicate with SQL Server. Access the following URL to download the Microsoft SQL Server 2012 Native Client ODBC driver for x86: http://go.microsoft.com/fwlink/?LinkId=163712 ' I have downloaded the drives from http://www.microsoft.com/en-us

PHP 5.5.0 w/ Microsoft SQL Server 2008 R2 - No sqlsrv_connect()?

纵饮孤独 提交于 2019-11-29 08:38:57
I have the following environment: Windows Server 2008 R2 IIS 7.5 Microsoft SQL Server 2008 R2 I want to use the new PHP 5.5.0 version, which works just fine per sé, but I can't connect to the MSSQL server due to the lack of current drivers. For my previous PHP 5.4.15 version, I used the official Microsoft drivers from >here< . Is there yet any possibility to connect from PHP 5.5.0? PHP 5.5 compiled with VC11, so the driver must be compiled with VC11 too. You can download PHP SQL Server driver (compiled with VC11) from here: SQL Server PHP Driver For PHP 5.5 Official driver from Microsoft has

Calling stored procedure from PHP using PDO to MSSQL Server using INPUT Paramters

若如初见. 提交于 2019-11-28 14:07:23
This does not work: $dbh = new PDO("dblib:host=xxxx;dbname=xxx", "xxxxx", "xxxxx"); $sth = $dbh->prepare("{exec wcweb_UserInfo(?)}"); $sth->bindParam(1, $name); $sth->execute(); while($result = $sth->fetch(PDO::FETCH_ASSOC)) { var_dump($result); } This also does not work: $dbh = new PDO("dblib:host=xxxxx;dbname=xxxx", "xxxxx", "xxxx"); $sth = $dbh->prepare("{call wcweb_UserInfo(?)}"); $sth->bindParam(1, $name); $sth->execute(); while($result = $sth->fetch(PDO::FETCH_ASSOC)) { var_dump($result); } This DOES work: $dbh = new PDO("dblib:host=xxxxx;dbname=xxxx", "xxxxx", "xxxx"); $sth = $dbh-

How to connect to MSSQL 2000 from PHP 5.3 and up

孤街浪徒 提交于 2019-11-28 09:29:08
I have a legacy business application built on MS SQL Server 2000. I have some webbased utilities that access this database using PHP 5.2 with mssql extension. I need to reinstall the web server, and I looked forward to upgrade to PHP 5.4. Unfortunately, the mssql extension is not supported on PHP 5.3 and newer. There is the sqlsrv extension available form Microsoft , but the description says that it is only supported for accessing SQL server 2005 and up. How can I connect to my SQL Server 2000 from PHP 5.4 ? Did anyone already solve this issue ? This is a really complicated issue. Here are the

PHP 5.5.0 w/ Microsoft SQL Server 2008 R2 - No sqlsrv_connect()?

淺唱寂寞╮ 提交于 2019-11-28 02:18:41
问题 I have the following environment: Windows Server 2008 R2 IIS 7.5 Microsoft SQL Server 2008 R2 I want to use the new PHP 5.5.0 version, which works just fine per sé, but I can't connect to the MSSQL server due to the lack of current drivers. For my previous PHP 5.4.15 version, I used the official Microsoft drivers from >here<. Is there yet any possibility to connect from PHP 5.5.0? 回答1: PHP 5.5 compiled with VC11, so the driver must be compiled with VC11 too. You can download PHP SQL Server

Codeigniter: How to setup connection to a SQL server (2008)

风格不统一 提交于 2019-11-28 02:18:21
I've spent many days on this task, and I can't see the end until now. In the past day I managed to install sqlsrv driver on my PHP environment successfully but now when I try to connect I get this message: Unable to connect to your database server using the provided settings. My settings in application/config/database.php are so defined: $db['dbname']['hostname'] = "ENJ01\SQLEXPRESS"; $db['dbname']['username'] = "user"; $db['dbname']['password'] = "password"; $db['dbname']['database'] = "dbname"; $db['dbname']['dbdriver'] = "sqlsrv"; $db['dbname']['dbprefix'] = ""; $db['dbname']['pconnect'] =

Fatal error: Call to undefined function mssql_connect() or sqlsrv_connect() in xampp

自作多情 提交于 2019-11-28 02:15:39
I did all the changes given here but I still not connect SQL server on my php 5.6 version. I tried with mssql_connect() and sqlsrv_connect() both. I changed ; On windows: extension_dir = "ext" to: ; On windows: extension_dir = "D:\xampp\php\ext" I have installed .dll s too. But result is still: Fatal error: Call to undefined function sqlsrv_connect() or Fatal error: Call to undefined function mssql_connect() can anyone help me?? mssql_connect() is no longer supported by PHP since PHP 7.0 and was depreciated in 5.3. Create a phpinfo.php file: <?php // Show all information, defaults to INFO_ALL