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! :)

Re: Move from mssql to sqlsrv driver on PHP 80 80

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

Re: Move from mssql to sqlsrv driver on PHP 80 80

Thanks Pritaeas!

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.