Skip to main content

Install Microsoft SQL Server Driver with WAMP


Most of PHP developer very much familiar with MySQL Database but We talk about Microsoft SQL Server we find lack for knowledge on PHP with SQL Server even on the google and php.net official website. Even the hosting company provide Pre-installed PHP and MySQL on the Server. Here some explicit instructions for install Microsoft SQLServ Driver in WAMP 32bit with PHP 5.3 :

1. Open http://www.microsoft.com/en-us/download/details.aspx?id=20098 for Download Microsoft SQLServ PHP Driver
2. Download SQLSRV30.EXE (Windows Vista, Server 2008, Windows 7 or above) or SQLSRV20.EXE (Server 2003/Windows XP or below).
3. Run SQLSRV30.EXE and enter your PHP bin folder path to Install Driver DLL files.
Ezeelive Technologies - PHP Wordpress developer in Mumbai
4. Open php.ini file and enable php sqlserv extensions
 extension=php_pdo_sqlsrv_53_ts.dll
 extension=php_sqlsrv_53_ts.dll

5. Restart All services in Wamp and confirm pdo_sqlsrv extension enable in phpinfo
6. Put you database connection string detail and User below php code to check database connection.
<?php
$serverName = "hostname or ip"; 
$connInfo = array("Database"=>"db_name", "UID"=>"db_username", "PWD"=>"db_password");
$conn = sqlsrv_connect($serverName, $connInfo);
if($conn){
 echo "Database connection established.<br />";
}else{
 echo "Connection could not be established.<br />";
 die( print_r(sqlsrv_errors(), true));
}
?>
If you find any problem or difficulty, please fill free to contact us on info@ezeelive.com or leave a comment

Comments

Popular posts from this blog

WhatsApp Chatbot Development in India: A Comprehensive Guide

  WhatsApp has emerged as the most popular messaging platform in India, with over 500 million users . With such a vast user base, businesses are increasingly leveraging WhatsApp chatbots to automate customer interactions, enhance engagement, and drive business growth. This article explores WhatsApp chatbot development in India , its benefits, industries adopting it, the development process, and leading service providers. What is a WhatsApp Chatbot? A WhatsApp chatbot is an AI-powered virtual assistant that interacts with users via WhatsApp Business API . It can handle customer queries, provide support, and automate workflows without human intervention . Why Businesses in India Need WhatsApp Chatbots? 1. Massive User Base WhatsApp is the most widely used messaging app in India, making it the best channel for customer communication. 2. 24/7 Customer Support Automates responses and handles multiple customer queries simultaneously, reducing the need for manual support. 3. Enhanced Cu...

The rise of generative AI startups in India and their impact on businesses

Generative AI startups are reshaping India’s business landscape , driving automation, personalization, and efficiency across industries. With advancements in deep learning, NLP, and computer vision, Indian startups are leveraging Generative AI to create innovative solutions in content creation, healthcare, fintech, e-commerce, and more . 1. The Boom of Generative AI Startups in India Several AI-driven startups in India are developing cutting-edge generative AI models , backed by increasing investments and government support. The rise of Digital India, AI-for-All, and startup incubators has accelerated AI innovation. 2. Key Generative AI Startups in India Ezeelive Technologies Expertise : AI-powered chatbot development and generative AI automation. Impact : Enhances customer engagement, automation, and AI-driven interactions for businesses. Writesonic Expertise : AI-driven content generation for blogs, ads, and copywriting. Impact : Automates content creation for businesses, reducin...

Generative AI Chatbot Services: Revolutionizing Customer Engagement

  Generative AI chatbot services are transforming the way businesses interact with customers. These AI-driven chatbots leverage advanced machine learning models to generate human-like responses, enhancing customer experience, automating repetitive tasks, and driving operational efficiency. With the rise of conversational AI, companies across industries are adopting generative AI Chatbot Services to improve engagement and productivity. What is a Generative AI Chatbot? A generative AI chatbot is an advanced AI-powered virtual assistant that can understand, process, and respond to user queries dynamically. Unlike rule-based chatbots, which rely on predefined responses, generative AI chatbots use machine learning models such as GPT (Generative Pre-trained Transformer) to generate contextually relevant and human-like responses in real-time. Key Features of Generative AI Chatbots Natural Language Processing (NLP): Enhances understanding of human language and improves interactions. Cont...