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

Overcoming Challenges in Adopting Generative AI in India

Adopting Generative AI in India presents several challenges, but it also offers significant opportunities for growth across various sectors. Here are some key obstacles and strategies to overcome them: 1. Infrastructure and Resource Limitations Challenge : India still faces issues with the availability of high-performance computing resources needed for generative AI models. This includes access to powerful GPUs and cloud services, which can be expensive. Solution : Partnerships with global tech firms can help bring advanced infrastructure to India. Government initiatives like the National AI Strategy and collaboration with research institutions can also boost local capabilities. 2. Data Privacy and Security Concerns Challenge : Data security is a significant concern, especially with the collection and usage of sensitive information. India's data protection laws, such as the Personal Data Protection Bill, are still evolving. Solution : Clear regulatory frameworks around data usage ...

Android Application Development In Mumbai

Android is quite busy in conquering the mobile application development market and there are plenty of companies which have headed towards android app development projects. It is an open source platform. The popularity of the Android is increasing rapidly and plenty of web developers are trying to make best use of the mobile platform. Android app developer Mumbai has amazed the entire world with their marvelous success in the mobile application industry. The android apps created are highly reliable and robust in nature when compared to other platforms. Tools and technologies used in android app development Most of the mobile app developers rely on Java language. With the recent developments on the Android platform, the developers have started developing the application with the support of the latest version of Adobe Air technologies and Adobe flash. Android SDK is used by the developers in mobileapp development in mumbai for writing code, testing and debugging the apps. ...

Startup AI Innovation in India

India's startup ecosystem has been booming with AI-driven innovation across various industries, including healthcare, finance, retail, agriculture, and education. Here’s an overview of the AI innovation landscape among Indian startups : Top AI-Focused Startups in India Uniphore Focus: Conversational AI and automation for customer service. Highlights: Specializes in speech recognition, natural language processing, and emotion analysis. Arya.ai Focus: AI for financial services, including risk assessment and fraud detection. Highlights: Known for modular AI solutions that are scalable and customizable. Niramai Focus: AI-powered early breast cancer detection. Highlights: Uses thermal imaging and machine learning for non-invasive, affordable diagnosis. SigTuple Focus: Healthcare diagnostics automation. Highlights: AI tools for medical imaging analysis, pathology, and ophthalmology. CropIn Focus: Agri-tech solutions. Highlights: Uses AI for crop health monitoring, farm management, and yi...