Microsoft JDBC Driver having strange behaviour with Java code.
I have tried with java code to use Microsoft JDBC driver to get connection on SQL Instance enabled with SSL Protocal and SQL Server with NTLMV2 protocol. I am using windows authentication to get...
View ArticleInsert JSON records into SQL Server table using PHP
I hope this is the correct forum for PHP questions related to sql server.I would like to pull data for all the cities in my county from the census API into a table in sql server. I have been working...
View ArticleInsert records into SQL Server table using PHP
I hope this is the correct forum for PHP questions related to sql server.I would like to pull data for all the cities in my county from the census API into a table in sql server. Right now, it inserts...
View ArticleSQLState 42000 Error 3980 on Zend Framework 2 PHP
Hi guys I'm having a problem when executing insert query using Zend Frameworks TableGateway. I'm always getting this error "[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]The request failed to...
View ArticleRandom occurrences of SQLState IM004
Greetings,As the title says.. ok, actually, let's go from the beginning. We've a project that's been running on a Windows 2008 R2 + IIS 7.5 + PHP 5.6 + Sql Server 2008 for the past 4 years. Since the...
View ArticleHow do we call sqlsrv_query(), after sqlsrv_prepare()?
Hi,I'm doing an INSERT with a Stored Procedure. Something like this:$sql_prep = "EXEC p_1A_insert( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )"; $stmt =...
View ArticlePHP 5.6 driver download actually contains 7.x.
Hi,The download for the PHP 5.6 drivers that are referenced athttps://www.microsoft.com/en-us/download/confirmation.aspx?id=57916actually contain the 7.x drivers. The executable to extract the...
View ArticleFailed to fetch...
Receiving the following error when building sql server in docker php image:```Reading package lists... E: Failed to fetch...
View ArticleSQL Driver issues
Greetings,We've a server running Windows Server 2008 R2 + Sql Server 2008 + PHP 5.6; I'm aware all of that is old and should be upgraded but as you can all imagine, long running apps aren't something...
View Articlei cant login to my website, use IIS and Ms SQL Server Studio
this is my code named process-login.php<?php include 'config/config.php'; if(isset($_POST['login'])){ $nama = $_POST['nama']; $nomor = $_POST['nomor']; $dept = $_POST['dept']; $qry =...
View ArticleSql Server Native client for Mac
Hello,First I hope that I'm in the right forum.I'm using Excel VBA (PC) and SQL Server, in the past I needed to installed SQL Server Native Client to be able to do it, and after I installed it,...
View ArticlePersistent VSS snapshot gets removed from restored VM
Persistent VSS snapshot is getting removed for some volumes on my VM on VMWare, below are the steps I used to do this1] Take persistent VSS snapshot of SQL using SQl writer 2] Take VM snapshot and...
View ArticleError installing sqlsrv driver in Linux
When I try to install the driver in Ubuntu 16.04 I get the following error:dtz-dany Install SQLSRV # pecl install sqlsrv downloading sqlsrv-4.3.0.tgz ... Starting to download sqlsrv-4.3.0.tgz (164,282...
View ArticleBack up process
Hi All,I am planning to set backups for databases in simple recovery mode. Can anyone please provide me with some good document? Are there any other kind of backup's other than simple recovery? Which...
View ArticleAccess to all but one table
Hi is there a way where i can give access to a user to the whole database (READ ONLY) except for couple of tables?Thanks
View ArticleAudit log
I would like to know how to enable audit logs for specific user group. Ex: If application development team do changes to live database without an approved change request form. So we suggested that...
View ArticleCombining Laravel with SQL Server on Azure goes wrong...
I'm trying to deploy a Laravel Application to Azure using the App Service. Things are working pretty ok, I set the PHP version to 7.1, added the Composer extention, and added a web.config file in the...
View ArticleConnection fails with 'Login failed for user xxx'
I'm trying to set up a demo on my local machine showing how to use SQLSRV in PHP. To facilitate, I've added a new login and a user using that login, both named DemoUser, and given that user...
View ArticleExec as user/revert problem with ConnectionPooling
Try to connect and execute any statement with ConnectionPooling=1 is failed when previous connection used 'exec as user' without corresponding 'revert'.Error message: HY000[0]: [Microsoft][ODBC Driver...
View Article