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

4 comments:

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

    ReplyDelete

  2. الرائد من افضل شركات الخدمات المنزلية في المملكة وخدماتها تغطى كل المنطقة العربية للمزيد قم بزيارة
    شركة تنظيف خزانات بمكة شركة تنظيف خزانات بمكة
    افضل شركة تنظيف منازل بالمدينة المنورة افضل شركة تنظيف منازل بالمدينة المنورة
    افضل شركة تنظيف بمكة بالبخار افضل شركة تنظيف بمكة بالبخار
    شركة نقل عفش من جدة الى الاردن شركة نقل عفش من جدة الى الاردن
    شركة تنظيف مجالس بمكة شركة تنظيف مجالس بمكة

    ReplyDelete
  3. What are some of the cheapest places to travel to in the world? From Asia to Africa and Europe, Things to do 's got budget breakdowns for the cheapest places.

    ReplyDelete
  4. Packers and Movers Ahmedabad - We Provide ***Best Service Providers, Safe, Reliable, Affordable, Trusted ###Movers and Packers in Ahmedabad List, Household Shifting, Office Relocation: Choose Top Verified Packers and Movers Ahmedabad Compare ✔✔✔Shifting Service Chrages, Price Quotation, Rate List Charts and Save Money and Time @ Packers and Movers Ahmedabad

    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.