microsoft / msphpsql

Microsoft Drivers for PHP for SQL Server
MIT License
1.81k stars 374 forks source link

Future planning #58

Closed gregrobson closed 5 years ago

gregrobson commented 9 years ago

This is more of a recommendation/request, rather than an issue.

The Go PHP7 group are looking to make sure that as many extensions as possible are ready for PHP7's release later this year.

Previously the SQL Server driver has been slow to keep up with new releases. Since moving to GitHub there have been a lot of improvements and 5.6 is supported :smile:

It would be really great if SQL Server was supported out of the box when PHP7 is released!

More information about Go PHP7 can be found on their own pages: https://github.com/gophp7/gophp7-ext

sirio3mil commented 8 years ago

@meet-bhagdev thanks a lot for this release, your team have plans to release a x64 version for this TP? Regards

brainfoolong commented 8 years ago

Happy to see something, unhappy that i cannot use it because the lack of 64bit support. As already asked, some infos for the 64bit issue?

nigrosimone commented 8 years ago

@meet-bhagdev news for x64?

ashryalls commented 8 years ago

Given x64 support in php was experimental until php7 anyway (and therefore presumably not used in the wild) I'd (personally) much rather have a PDO driver in any form first, with x64 for both the old sqlSrv and newer PDO to follow.

oveach commented 8 years ago

@ashryalls +1

rloone commented 8 years ago

x64 +1 :-)

qqzm commented 8 years ago

PDO +1

luesak commented 8 years ago

Please release support for x64 PHP 7 soon. It'll be a whole new world for many of us! Many Thanks~!

meet-bhagdev commented 8 years ago

Thanks for all the feedback so far. I would like to share a survey with you all. This will help us prioritize the work going forward. If you all could spend a few seconds to provide your input on this survey, that would be greatly appreciated.

camrada commented 8 years ago

Thanks @meet-bhagdev :)

jlisham commented 8 years ago

I'm also looking for PDO x64 (just finished the survey). Thank you @meet-bhagdev for all your work on this and it's gratifying to hear that MSSQL updates/requirements may be more in step with future PHP releases.

zaghbizied commented 8 years ago

Thanks @meet-bhagdev :)

tschallacka commented 8 years ago

just for interests sake, will you post the results of the poll here when it finishes? it'll be interesting to see the distribution of tech requirements from different devs.

zaghbizied commented 8 years ago

Hello guys, is there a way to compile the new released sources on Linux?

meet-bhagdev commented 8 years ago

We will definitely publish the results of the poll once it ends. I will close the poll on Sunday (2/7). I believe that is sufficient time for everyone to share their requirements.

KyleWiering commented 8 years ago

@meet-bhagdev How did the poll turn out?

meet-bhagdev commented 8 years ago

@KyleWiering thanks for the ping. It turned out great. I was delighted to see the number of unique respondents (147 respondents). Here are the results:
image
image

Q: What does this mean? Ans: This means, we will revisit our plans to see how we can align best with what you all want here. We plan on supporting all the variants mentioned in the survey. The goal of the survey was to figure out which ones should we prioritize. We now have a clear idea and will try our best to do prioritize based on the data.

Thank you all for taking time to do this survey. Let me know if you have any questions.

Meet

naskobulgaria commented 8 years ago

Thats why i cant still use pdo sqlsrv driver on new PHP7. We are planning to develop new ERP for our company and i wonder how can i proceed with the versions. So i have to downgrade to PHP5.6 if i want to use IIS and PHP on one mashine?

sirio3mil commented 8 years ago

Tested with php nts fast cgi 7.0.3 and nginx and works fine at first look.

meet-bhagdev commented 8 years ago

@sirio3mil Glad to hear :) @naskobulgaria : We are currently working on the PDO sqlsrv driver. Will keep you and the rest of the Github community updated.

joe-udwin-lrn commented 8 years ago

@meet-bhagdev do you have an ETA on the PDO sqlsrv driver?

nbpalomino commented 8 years ago

Tested on Windows 7 x64 + PHP 7.0.3 x86 Thread Safe. And works very nice.

PS: I will be waiting for PDO_SQLSRV version.

Thanks a lot.

meet-bhagdev commented 8 years ago

@nbpalomino : glad to hear :) @Joe-U-Questionmark : Thanks to the survey results we have we have mostly been focusing on making updates to support native 64-bit and the PDO driver. I do not have an eta to give yet but will let have timeline to share in a few days.

DigitalSolo commented 8 years ago

I appreciate all of the hard work. I am patiently waiting on the native 64 BIT driver to upgrade to PHP 7. I am currently running Apache 64 Bit and PHP 5.6.5 64 Bit. I could really use the performance gain that PHP 7 promises :)

I will add it's nice to have communication with a Microsoft Rep. Thank You!

ezison commented 8 years ago

I am using the "PHP5.6 + SQL Server Driver for PHP + PDO", but in trouble in that SELECT is slow. When I search on the Internet, there was a person who suffer from the same phenomenon.

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/6c4d2c96-6ddc-4872-a5b6-51daddf3a095/best-way-to-handle-large-result-set-400-000-rows?forum=sqldriverforphp

This problem is, what shall be resolved by PHP7?

Thanks.

gititron commented 8 years ago

I would like to add a request that the new drivers have an option to not send the messages like the following to the php error log: pdo_sqlsrv_db_handle_factory: SQLSTATE = 01000 pdo_sqlsrv_db_handle_factory: error code = 5701 pdo_sqlsrv_db_handle_factory: message = [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Changed database context to 'Scheduling'.

If there is currently a way to do that which I'm not aware of, please enlighten me. Thanks

brainfoolong commented 8 years ago

@meet-bhagdev

but will let have timeline to share in a few days

Any news on that? 2 weeks over since that comment. Especially interested for the 64bit native release.

244863 commented 8 years ago

I am waiting on the x64 PDO driver, any news on timescales?

meet-bhagdev commented 8 years ago

Hi all, thanks for the ping. We have been working extremely hard on the PDO 64 bit &32 bit drivers as well as the native SQLSRV 64-bit driver. We plan on sharing an early preview 64 bit native SQLSRV module in the week of 3/14 and the PDO 64-bit and 32-bit drivers about 3 weeks after that. That being said, we are pushing extremely hard to get these drivers out of the door as soon as we can. Towards the end of the week I will have the precise dates to share.

In the meanwhile, I also wanted to share an exciting announcement of running SQL Server on Linux. Check it out :) https://blogs.microsoft.com/blog/2016/03/07/announcing-sql-server-on-linux/

brainfoolong commented 8 years ago

Just good news, thx @meet-bhagdev

ChoOo7 commented 8 years ago

Hello Thanks, it's a good news. Will the driver works with SQL Azure wich doesn't allow the USE keyword (The database should be selected during the connection)

Thanks

Regards

DigitalSolo commented 8 years ago

The week of 3/14 is like Christmas in March... wrap a bow around the 64 bit native SQLSRV driver please ;)

meet-bhagdev commented 8 years ago

Hello all, we just uploaded the bits for the 64-bit SQLSRV driver. Feel free to give it a shot and let us know if you find any bugs/issues/concerns that you would like us to address. Next up, 64-bit PDO and 32-bit PDO driver. You should expect to see a release from us on the PDO variants in the next few weeks. I will try to get an accurate timeline as soon as I can.

Cheers, Microsoft PHP Driver for SQL Server team

DigitalSolo commented 8 years ago

Where are they please; I looked under https://github.com/Azure/msphpsql/releases but didn't see anything new.

meet-bhagdev commented 8 years ago

https://github.com/Azure/msphpsql/releases/tag/v4.0.2

DigitalSolo commented 8 years ago

I am stupid.. lol I thought those were prefixed with PDO, sorry.

meet-bhagdev commented 8 years ago

No worries @DigitalSolo, glad it got sorted out. Would love to get your feedback on the bits.

Cheers, Meet

DigitalSolo commented 8 years ago

I am unable to connect to the DB with this error message: Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x64: http://go.microsoft.com/fwlink/?LinkId=163712 [message] => This extension requires the Microsoft ODBC Driver 11 for SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x64: http://go.microsoft.com/fwlink/?LinkId=163712 )

[1] => Array
    (
        [0] => IM002
        [SQLSTATE] => IM002
        [1] => 0
        [code] => 0
        [2] => [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
        [message] => [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
    )

)

meet-bhagdev commented 8 years ago

@DigitalSolo The Microsoft ODBC Driver is a pre-requisite for the PHP Driver. Can you download the driver from here? Let us know if this still exists and we will work with you to sort it out. Also, feel free to create a new issue, so that we can track it better.

Cheers, Meet

DigitalSolo commented 8 years ago

Loading the ODBC Driver now. The link in the error message doesn't make it real clear where to get the file. http://go.microsoft.com/fwlink/?LinkId=163712 Thank you for the link you provided.

DigitalSolo commented 8 years ago

That worked great. I can select data from my DB just fine. I will test writes and a few other things tomorrow. Thanks for the hard work :)

meet-bhagdev commented 8 years ago

Glad it worked out! :+1: :)

PakL commented 8 years ago

Hey there, had one issue so far with sqlsrv_fetch_array: you have to define fetchType or else php crashes. Otherwise it works great for me.

k2viewLTD commented 8 years ago

Is it possible to add it to https://www.microsoft.com/en-us/download/details.aspx?id=20098 ?

DigitalSolo commented 8 years ago

It's only in the beta testing phase so I would assume not until it get's past UAT.

meet-bhagdev commented 8 years ago

@k2viewLTD : We will definitely add it to the download center in the coming months. I am curious to learn what do you prefer, getting the bits from Github or Download Center? @PakL : Issue has been noted and will be investigated. Will let you know if we have any questions.

Cheers, Meet

DigitalSolo commented 8 years ago

Could you add the download link https://www.microsoft.com/en-us/download/details.aspx?id=36434 to the required ODBC driver to the error page: http://go.microsoft.com/fwlink/?LinkId=163712 This is the link that's given in the error message when you don't have the ODBC driver installed.

meet-bhagdev commented 8 years ago

@DigitalSolo Will be done! @PakL Can you share a repro script for the issue you are experiencing?

Cheers, Meet

DigitalSolo commented 8 years ago

Thank you

PakL commented 8 years ago

@meet-bhagdev I made some more tests. It only crashes with prepare parameters and undefined fetchType. Here is a snippet of my test https://gist.github.com/PakL/97abbb0767df3f42ba51