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

Comparison between Prestashop and CS Cart eCommerce System

We (Ezeelive Technologies) are comparison CS Cart with another famouns eCommerce system called Prestashop. Both Prestashop and CS Cart use their own in-build Php MVC pattern. Our development team have find  Prestashop  has such good features like Frontend and Backend Speed, Product Comparison, URL Rewriting, HTML5 Image Uploader, Taxes, Stores Locator etc. Read more :  http://www.ezeelive.com/blog/comparison-prestashop-cs-cart-ecommerce-system/

CS Cart Development Company In India

There is no shortage of CS cart development companies in India and for a well-functioning cart system, it is significant to hire a good company that specializes in designing websites and e-commerce development services. A well-functioning CS cart system can increase the reach of your business and help your business stand out from the other websites. Here we have listed the importance of hiring a CS-Cart Development Company in India and the features you should look for in a company. Significance Of CS-Cart Development Company  CS cart e-commerce system is a widely used and popular shopping cart for e-commerce websites. Features like open sources, easy and free to utilize make this system a unique one. Among all the other carts of shopping, CS cart is popular for its flexibility and easy installation, as it is written completely in PHP language. Aside from that, even managing this system is rather simple and effortless. Various components of HTML, MySQL, etc., are util...