What if I do not rebuild my indexes?
Hi All,we have a daily job to re-organize the table indexes and I have observed that the table fragmentation does not goes beyond 10%.Do I still need to go ahead and re-index all the the indexes? or I...
View ArticleHow do I use myPHP to access MySQL through PHPmyadmin?
I have my local site (Donor Management web page) hosted on my local server. I have myPHP installed in it to work with the SQL database through PHPmyadmin. But the myPHP is a really old version, how do...
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 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 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 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 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 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 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 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 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 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 ArticleFailed to fetch...
Receiving the following error when building sql server in docker php image:```Reading package lists... E: Failed to fetch...
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 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 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 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 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 ArticleMicrosoft 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 Article