We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,870 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Move from mssql to sqlsrv driver on PHP

I have a PHP shopping cart system and it's using MS SQL for the backend. Currently it's using the mssql driver. Now I want to move it to Windows Azure and I'm required to change the driver to sqlsrv 2 in order for it to work there.

Can anybody tell me if I really need to change the way my db queries are written or can I just retain them and will still work under the new sqlsrv driver?

Example: mssql_connect() -- current syntax which ideally should be sqlsrv_connect() under sqlsrv driver, but will it still work as is?

Thanks in advance! :)

2
Contributors
2
Replies
15 Hours
Discussion Span
1 Year Ago
Last Updated
5
Views
Question
Answered
Misheki
Newbie Poster
8 posts since Mar 2011
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0

Here is an example of how it should look. The connect is different, and as far as I see the query parameters are reversed.

pritaeas
Posting Prodigy
Moderator
9,268 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,457
Skill Endorsements: 86

Thanks Pritaeas!

I think this means I have to change the way my queries are written. Sounds like a lot of work. :P

Misheki
Newbie Poster
8 posts since Mar 2011
Reputation Points: 10
Solved Threads: 2
Skill Endorsements: 0
Question Answered as of 1 Year Ago by pritaeas

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0667 seconds using 2.66MB