Friday, April 29, 2011

PHP MSSQL , SQL SERVER 2008 Trouble

Having trouble connecting to SQL SERVER 2008 R2 ?


PHP has changed the way it connects to sql server recently and to my surprise I couldn't find  a single article showing me how to do this.

Here's how you use DSN to connect to SQLSERVER using Microsofts SQL Server driver..
sqlsrv://sa:yourpassword@localhost/dbname

Post a comment and let me know if it works

1 comment:

  1. I am not that much familiar with this information. Now I had got some useful information. Thanks for sharing.

    ReplyDelete

Let me know if any of my posts were helpful. I would appreciate it.

Did my blog post save the day for you?

If my blog post helped you, please leave a comment before you leave. or Ask me if you have any specific questions and I'll reply you back as soon as I can.

About Me

My photo
Godwin Sam Josh is a Microsoft Professional working on almost all Microsoft Technologies.He currently runs his own company called GloriaTech (http://gloriatech.com). He is mainly into providing Mobile and Web solutions using Microsoft Technologies.Godwin also provides training and speaks at various conferences.