NULL values and data truncation due to automatic data types conversion
We are migrating from FreeTDS to Doctrine PDOSQLSrv or SQLSrv (trying both at the monent) and have encountered the problem with the data truncation of the fields that are not updated. Our update...
View ArticleHow to set TimeOut for execution the stored procedure from PHP
Hi,How do I set the TimeOut for EXEC the Stored Procedure from PHP Because i am using php to call sql server Stored Procedure, for ex: "EXEC SP_Name" some times its taking too long time, so the php...
View ArticleMessage authentication code
Hello Everybody,Please can you help me to find out the information in SQL Server 2012.MAC of authentication information1. Implementation level of MAC2. Protocol3.Cipher Suite 4. Version5. Key Length...
View ArticleSQL Server Compatibility
Hi,Is PHP 7.2.2 compatible with the Microsoft Drivers for PHP for SQL Server?Greetings
View Articlephp 7.0 sqlsrv_connect to SQL 2008 R2
Hi, Could someone help us resolve the issue, thank in advance? We are using php 7, sql server 2008 r2 on windows server 2008 r2 sp1, iis 7.5. The issue is we are upgrading code to work with php 7,...
View ArticleShowing an SQL Server table in an html table php
Hi,I have connected to my SQL database using SQLSRV driver when I try to display a Column that contains a DateTime value, the column is empty and any decimal value is shown with 2 extra 0's.Is there...
View ArticleHow to retrieve data from an sql server db using a stored procedure php
Hi,I am struggling to understand how to get data from my SQL server DB using a stored procedure, the stored procedure requires that I pass it the parameter of 'date', then I wish to populate an HTML...
View ArticleHow 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 ArticlePDO Specific module can't be found
Hello,I am trying to install the PDO_SQLDRV, and when i run php --ini I get "the specified module can not be found" for these two files: php_pdo_sqlsrv_71_nts_x64.dll & php_sqlsrv_71_nts_x64.dll....
View ArticleI am not able to check whether user is authenticated or not using php and sql...
I have a login.html then action is logincheck.php and here login check.php<?php $uname = $_POST['username']; $pword = $_POST['password'];$serverName = "192.168.0.153,1433";$connectionInfo =...
View ArticleError 1704 Microsoft SQL server 2008 R2 Native Client
Hello, I am attempting to install Tableau on my laptop and in the middle of the installation I receive an error 1704. An installation for Microsoft SQL server 2008 R2 Native Client is currently...
View ArticleBig data, PHP and cursors
Environment:CentOS 7.4 with PHP 7.0.10 running from the command line SQLSRV driver version is 4.3.0 (according to 'php --ri sqlsrv') Microsoft SQ0L Server version 2014I am developing a PHP solution to...
View ArticleUnexpected error "New transaction is not allowed because there are other...
Hi, I've found a problem that appears to be a driver or database bug. While fetching a resultset in non-transactional context it is not allowed to start a transaction - this is well-known, you'll get a...
View Articleerror installing : fails to create SQLEXPRESS00 user on domain controller due...
Title says it all...I go to install from the command line, specifying passwords for all of the default accounts and this error pops up, preventing the install.I've tried creating and using a domain...
View Article64 bit Microsoft Drivers for PHP 5.6 for SQL Server
Hello everyone, Can anyone please tell where to find the official release of "64 bit Microsoft Drivers for PHP 5.6 for SQL Server" (php_sqlsrv_56_ts.dll and php_pdo_sqlsrv_56_ts.dll - both 64 bit). I...
View Articlehow to add a picture inside a table
Am new in PHP I want to show a picture inside a table The information stored in the table has part of the image path So far, my table looks like<?php foreach($viewmodel as $item) :...
View ArticleProblem 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 ArticlePerformance issue
we run two SQL instance sql 2012 on windows 2012 VM. one instance is slow and other is OK. there is no issue like blocking or anything related to SQL database. also there is no resource contention...
View ArticleMy PHP query to my SQL table is not returning any results.
So i connect to the database just fine. The only thing is that it keeps failing on the query. Here is my simple query code.Am I forgetting something or missing something that is currently eluding me? I...
View ArticlePass Windows Domain Creds from Linux PHP
I need to pass a Windows AD Service Account to the SQL Server to login from a PHP application running on Linux/Apache/PHP using the sqlsrv driver from pecl.php.net...
View Article