I personally choose not to use Micro$oft products when it is possible, but sometimes the choice is not given. For these unfortunate who have to deal with SQL Server 2008 (or 2005), here is how to get around without too many swear words and avoid licensing costs.
Note: In order to download windows Power Shell, you need to pass the genuine windows checking. You can still google for alternative download locations preventing the need for the checking. Power Shell also comes preinstalled from windows 7 including .Net framework 3.5 but it wont eliminate the need to download the service pack.
.
Setup SQL Server
Note: If you have an MSDN account, you can download SQLServer 2008 developer, this SQLServer have all the features of enterprise edition and only differ on licensing. You can also google for a store that sells the DVD for $47-$50.
This assumes you have wamp installed, otherwise just change the path.
extension=php_mssql.dll
$server = 'BANGKOK\SQLEXPRESS'; // The format is "HOST\SERVERNAME[,PORT]" $username = 'sa'; mssql_connect($server, $username, $password);
Note: WAMP was only recommend since it is easier to change the settings with no manual modification on your php.ini file. If you used windows 7 as the base operating system, you are required to download “SQLServer Service Pack 1″ to fix issues with SQLServer and windows 7.
The posted topic is inspired by a post made by David Lauzon which guide me on how to tackle the nightmare of using M$Sql and PHP together. For the record, I manage to connect MSSql and PHP in 7 days with no idea on what is wrong and even Visual Studio 2008 / Visual Studio 2010 have no success on connecting.
Optimized by SEO Ultimate
3:17 am
To people that are reading my blog, some contents that I am going to write will be available to astahost only. Astahost is a great commnunity that offers free quality webhosting for free by contributing to the forum.
I used to be hosted at astahost 3 years ago, the reason that I stopped being hosted is the lost of interest on maintaining a website. Travel from Laguna and Manila which is around 56km daily exhausted me too much.