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

Search paramaters SQLSRV_QUERY for WHERE IN syntax

I wonder if there is a way to pass some values into the parameters option on the sqlsrv_queryfunction. I tried a few things but could not get it to work. This query is what I want to be...

View Article


Can not connect to sql server express 2012

Dear all.I've installed wamp on my first PC (WINDOWS 10). I'm trying to connect my php script (since PC10) to a database on an another PC (windows 8.1). I 'm getting always the same message...

View Article


Getting scalar results from SQL Server Stored Procedure using PHP and sqlsrv...

I have created a Stored Procedure in MS SQL 2014 which is given a username and password and returns 0: Success; 1: Username not found; or 2: Password doesn't match.CREATE PROCEDURE authConfirmUserPass...

View Article

ODBC Driver Download Failed

Anyone else having problems getting the ODBC 11 driver from Microsoft's site. The page just fails when I attempt to download.https://www.microsoft.com/en-us/download/details.aspx?id=36434ThanksCliff

View Article

connect to localhost instance using PDO

Hi,I am just starting with SQL Server PDO drivers and I want to know how can I set the sqlsrv:server if I am going to use my localhost instance?My localhost instance name is JASSIM-RAHMAThanks,Jassim

View Article


Problem Querying using PDO

Hi,I am trying to use PDO like this simple code:<?php $mysql_host = "(local)\JASSIM-RAHMA"; $mysql_database = array("Database"=>"food"); $mysql_connection = sqlsrv_connect($mysql_host,...

View Article

php_mssql.dll not loading in PHP.ini

I am running PHP 5.6.21 under IIS on Windows Server 2012R2. PHP is working great. I need PHP to connect to a Microsoft SQL database, so I have this line uncommented in php.ini: extension=php_mssql.dll...

View Article

Result Differ PHP 5.6 SQL Server 2014 and SQLSRV Driver Version 3.2

I've spent days on this with no luck. I've read this article several times through. SQL SRV Driver White Pages. Searching with Google yielded no results that worked. Any Insight would be appreciated....

View Article


invalid db driver

I have 32 bit wamp server32 bit php 5.5.12CodeIgniter-3.0.4sqlsrv32,40,30,31and what  I get is an Invalid db driver..can anyone please tell me wjat's wrong? 

View Article


ODBC Connection

Hello,I'm currently developing a PHP-Application, that stores data in a Microsoft SQL database. I tried connecting to the database with the sqlsrv driver, but the driver showed an error-message and...

View Article

Can't access SQL Server using PHP

Good Evening,I installed SQL Server 2016 Enterprise on Windows Server 2012 R2 and PHP using Microsoft WPI. I added the following lines in the php.ini file:extension=php_sqlsrv_7_ts_x86.dll...

View Article

Error to connect MSSQL database through PHP

I can open the .php file in window server 2016 TP5 and PHP 7.0.9. After I upgrade my system to Window Server 2016 and PHP 7.1, I cannot connect to the MSSQL Server.When I open the .php file in the...

View Article

Bulk Copy?

Does SQL Server Driver for PHP support Bulk Copy?If so, then how using SQL Server Driver for PHP API Reference?Thanks Jeff in Seattle

View Article


Apache vs IIS - Can the PHP / SQL Drivers be used with Apache + PHP + SQL...

Trying to get an Apache + PHP + SQL server upgraded to newer software.  Having problems.  Wondering if PHP SQL Server extensions are compatible with Apache.I have previously used a configuration with...

View Article

0 rows being returned from SELECT query

I am trying to run a SELECT query to validate attempted logins to a website. I am running the following code. My problem is thateither the query is returning 0 rows or them number of rows is not being...

View Article


Installing MS SQL PHP drivers under Windows 2008 Server

Hi All,We are trying to setup MS SQL Server access from PHP 5.4 under Apache 2.2. The host is a Windows Server 2008 SP2 Enterprise. We downloaded the drivers from...

View Article

How to execute a stored procedure when using 1 param_in. The SP should return...

Hi,I have a stored procedure that requires @Date DATETIMEand will return a name (string) with a payout (decimal) and turnover (decimal).There will be multiple names with decimal values returned.I can...

View Article


Problem retrieving varchar('max') as output parameter from procedure

Hi,I'm having the String data truncation problem, similar to this Thread: http://social.msdn.microsoft.com/Forums/en/sqldriverforphp/thread/780d21df-7342-4cf2-ab1b-a4fd0aac8657In this thread, the...

View Article

Problem with entering Polish characters in PHP

Good evening,When I try to enter Polish characters (like ę, ą, ó and so on) into SQL Server via PHP, I get "strange" characters insterted instead of correct ones. Column is NVARCHAR and collation is...

View Article

Need help setting up Drupal 7 with SQL Sever 2008

Hello,I'm trying to learn Drupal 7.0 and setting up with SQL Server 2008. PHP is already installed and ready to go, and so is SQL Server. I already have a couple of database created and test with php...

View Article
Browsing all 163 articles
Browse latest View live


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