Quantcast
Channel: Microsoft Drivers for PHP for SQL Server forum
Browsing all 391 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

install failed "SQLSRV30.EXE is not a valid Win32 application"

Hi Everyone, I hope you can help and enlighten my poor MSSQL knowledge. I'm trying to setup a SQL connection from my SQL Server 2008 R2 (running on a Windows Server 2008 R2 x86) with Apache (using...

View Article


Problems with Windows 2008R2 IIS7.5 PHP 5.4 using PDO_SQLSRV and SQL Server 2008

Hello, I'm having problems migrating Drupal 7 from our current server (Windows 2008, IIS7, PHP 5.2, SQL Server 2005) to a new one (Windows 2008R2, IIS7.5, PHP 5.4 NTS with FastCGI 32bit, SQL Server...

View Article


Compile 64-bit SQL Server Driver for PHP - php_sqlsrv.dll

Follow the instructions from  README.TXT of the source code, (http://sqlsrvphp.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=31762) I can compile 32-bit php_sqlsrv.dll in Visual Studio 2008...

View Article

PHP 5.3.10 Error When trying to connect to remote SQL Server

We have a server running on Windows Server 2003 32 Bit IIS6.0 (We have some Classic ASP apps that uses 32bit components so we can't upgrade to 2008 64bit) Our DB Server is on a separate computer...

View Article

Trying to get PDO_SQLSRV working on a 2003R2 box

I seem stuck in a loop I can not get out of. We have a Windows Server 2003R2 server running IIS V6.0. I know it is old, I know it has issues, but I am stuck with it and I do not see it being upgraded...

View Article


Cannot load SQLSRV PHP 5.4 DLL

Still getting the same error php_sqlsrv_54_nts.dll' - %1 is not a valid Win32 application.  I have installed the latest version of IIS i guess it is 7.5 and using PHP Manager to enable the extension....

View Article

fieldmetadata of greek database not showing right

I have a greek database in sql server 2008 with the character columns set to nvarchar.When i connect to the database from php i have set Characterset to UTF-8 and in the header of the html files...

View Article

MSSQL 2008 remote connection problem using PHP

I'm trying to connect remotedly using php to my mssql server. this is my line code to test to connect to my mssql server <?php // Server in the this format: <computer>\<instance name> or...

View Article


memory leak with php and sqlsrv

Hi, I encountered a problem with a memory leak using Microsoft Windows Server 2008 R2, IIS/FastCGI, sqlsrv 2.0.182 and php 5.2.17 (php_sqlsrv_52_ts_vc6.dll) / php 5.3.8 (php_sqlsrv_53_nts_vc9.dll)....

View Article


Has anyone been able to make SQLSRV 3.0 work with PHP 5.3.14?

According to Microsoft the SQLSRV 3.0 DLLs should work with PHP 5.3.6+, but when I try to use them with PHP 5.3.14 I get the usual error: [24-Sep-2012 21:15:21 UTC] PHP Warning:  PHP Startup: Unable...

View Article

SQLSRV Driver 3.0 not working with PHP 5.4

Hello guys, Windows 7 Home Premium x64 Apache 2.4.2 x64 PHP 5.4.3 TS VC9 Native Client 2012 SQLSRV 3.0 I have included the files in the folder and "php.ini" But phpinfo() not show sqlsrv ext Sorry for...

View Article

UTF-8 support in sqlsrv_fetch_array

Hello everyone,   I would like to use sqlsrv_fetch_array function to fetch UTF-8 encoded string from the SQL Server. Unfortunately, this is now impossible. There exists a "workaround", which is the...

View Article

How can I connect to a remote SQL Server 2005 database using PHP/PDO?

I'm using the following code:     $serverName = "<specific_name>.domain.com.au\<instancename>";     try{         $conn = new PDO( "sqlsrv:Server=$serverName;Database=<dbname>", "",...

View Article


bindValue problem with scandinavian characters using Sqlsrv 2.0 with PDO

I've made simple php-form to get data by city name... <?php $city = isset($_REQUEST["city"]) ? $_REQUEST["city"] : ""; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...

View Article

Errors appear twice in sqlsrv_errors()

First day with SQL Server Driver for PHP... I'm checking the result of the call to sqlsrv_connect() so I can throw an exception in my code. I enter wrong credentials and I call to sqlsrv_errors() to...

View Article


Image may be NSFW.
Clik here to view.

SQL Native Client 2012

Hi - I would like to install Microsoft Driver 3.0 for PHP for SQL Server in order to get PHP and MS SQL Server 2008R2 Developer's Edition to communicate.  The PHP manual lists Microsoft SQL Server 2012...

View Article

sqlsrv_has_rows() kills first row when called twice

In the latest 3.0 drivers, if sqlsrv_has_rows() is called twice, the next call to sqlsrv_fetch_array() will return the second row in the result set, not the first row.

View Article


SQLSRV30.exe and PHP 5.3.14 NTS

I am having an issue using the latest (SQLSRV30.exe) drivers against PHP v 5.3.14 NTS (php-5.3.14-nts-Win32-VC9-x86.msi).  After updating the php.ini to use: extension=php_sqlsrv_53_nts.dll I run php...

View Article

echo return value from store procedure

Hi, I'm using SQLSRV driver for my php to communicate with SQL DBMS, and I found some problem that I cannot resolve (I'm pretty new in this) my SP looks like this: USE [Warehouse] GO /****** Object:...

View Article

PHP and Inserting data from Web Form to SQL Server Express

I have somewhat thrown this together from what I have seen on the internet.  Not at all savvy with PHP.  Little SQL Server knowledge, but not much.  I have this code created: <?php $serverName =...

View Article
Browsing all 391 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>