Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will Ubuntu 20.04 LTS be supported? #1110

Closed
fasterforward opened this issue Mar 31, 2020 · 28 comments
Closed

Will Ubuntu 20.04 LTS be supported? #1110

fasterforward opened this issue Mar 31, 2020 · 28 comments

Comments

@fasterforward
Copy link

With the near arrival of Ubuntu 20.04 I am wondering is this version of Ubuntu supported?

@David-Engel
Copy link
Contributor

It first needs to be supported by the Microsoft ODBC Driver 17 for SQL Server. That will happen at the end of July/beginning of August when the next version of the ODBC driver comes out. At that point, the Microsoft PHP Drivers 5.8 for SQL Server can be tested for compatibility and possibly declare support for Ubuntu 20.04 using the new ODBC driver.

@fasterforward
Copy link
Author

Thanks for your answer, helps a lot!

@yitam yitam added the Linux label Apr 20, 2020
@bbrala
Copy link

bbrala commented May 4, 2020

Only then? That is kinda unfortunate... no way to build before that?

@yitam
Copy link
Contributor

yitam commented May 4, 2020

Yes you can @bbrala. We don't officially support it yet, but you can try the instructions. When downloading ODBC driver and tools, please use the packages from Ubuntu 19.10

@bbrala
Copy link

bbrala commented May 4, 2020 via email

@yitam
Copy link
Contributor

yitam commented May 4, 2020

Yes, probably @bbrala . If you run into any issues in the dev settings, please create a new issue for us to track.

@Jordi975
Copy link

I try to connect with sqlcmd or bcp and it's impossible in Ubuntu 20.04
[08001][unixODBC][Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2746

The connect with isql or tsql is successful
Do I have to wait for the new version?

@yitam
Copy link
Contributor

yitam commented May 26, 2020

@Jordi975 so far our internal testing shows nothing unusual. Is it a fresh install of Ubuntu 20.04 or an upgrade from the previous version?

@Jordi975
Copy link

It's a fresh install of Ubuntu 20.04

@yitam
Copy link
Contributor

yitam commented May 26, 2020

Yes you can @bbrala. We don't officially support it yet, but you can try the instructions. When downloading ODBC driver and tools, please use the packages from Ubuntu 19.10

Did you follow my suggestion above @Jordi975 to install the ODBC driver and tools?

@bbrala
Copy link

bbrala commented May 26, 2020

Yes I did and haven't had any complaints from developers so it seems to work as it should:+1:

@yitam
Copy link
Contributor

yitam commented May 26, 2020

That's great to know, @bbrala 👍
Please bear in mind it's not official yet.

@denisdal
Copy link

Hi, just to notify you that using Ubuntu 19.10 repo on a fresh install Ubuntu 20.04 gives this error when trying to connect to sql:
[Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2746

@Jordi975
Copy link

Yes you can @bbrala. We don't officially support it yet, but you can try the instructions. When downloading ODBC driver and tools, please use the packages from Ubuntu 19.10

Did you follow my suggestion above @Jordi975 to install the ODBC driver and tools?

I tried it but the connection with sqlcmd didn't work
I don't have mssql-server only sqlcmd installed. Because I have a remote server with windows server and sql 2008 DB
Thanks

@yitam
Copy link
Contributor

yitam commented May 27, 2020

@Jordi975 not sure about your windows server version, but just so you know, we stop supporting sql server 2008

@denisdal what's your version of sql server on which operating system?

You might need some workarounds, which can be found in related issues #1112, #1121 or #252

@Jordi975
Copy link

@Jordi975 not sure about your windows server version, but just so you know, we stop supporting sql server 2008

@denisdal what's your version of sql server on which operating system?

You might need some workarounds, which can be found in related issues #1112, #1121 or #252

Sorry @yitam , is SQL Server 2016

Microsoft SQL Server 2016 (SP1-GDR) (KB4505219) - 13.0.4259.0 (X64)
Jun 15 2019 19:20:12
Standard Edition (64-bit) on Windows Server 2012 R2 Standard 6.3 (Build 9600: )

@yitam
Copy link
Contributor

yitam commented May 27, 2020

@Jordi975 for SQL Server 2016, you will need a workaround. Please check my reply

@Jordi975
Copy link

Now, yes @yitam ...thank you so much for you help. I connected with sqlcmd and PHP7.4 !!

But I have an application running on in other server Ubuntu 18.04 (PHP 7.3)
And in the new one with new driver sqlsrv I have a strange error:

Example:
["fecha_entrada"]=>
object(DateTime)#2 (3) {
["date"]=>
string(26) "2019-08-02 10:49:26.323000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(13) "Europe/Madrid"
}

while( $row = sqlsrv_fetch_array( $stmt, SQLSRV_FETCH_ASSOC) ) {
var_dump($row);
$o = new ReflectionObject($row["fechabulto"]);
var_dump($o);
$p = $o->getProperty('date');

ERROR: Caught exception: Property date does not exist

@yitam
Copy link
Contributor

yitam commented May 27, 2020

hi @Jordi975 please check php 7.4 deprecation to see if ReflectionObject is one of them. If you like, please create a new issue as this is unrelated to Ubuntu 20.04 support

@denisdal
Copy link

@denisdal what's your version of sql server on which operating system?

You might need some workarounds, which can be found in related issues #1112, #1121 or #252

Microsoft SQL Server 2014 (SP2-GDR) (KB4019093) - 12.0.5207.0 (X64)
Jul 3 2017 02:25:44
Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows NT 6.3 (Build 9600: ) (Hypervisor)

@yitam
Copy link
Contributor

yitam commented May 28, 2020

@denisdal as explained above, a workaround is required for older SQL Server versions. There is a reason for the enhanced security and do it at your own risk.

@ryanhinton
Copy link

Hello @yitam,

Your solution reference for older SQL Server versions with Ubuntu 20.04 worked.

I did not have an issue with this in 19.10, but as soon as I upgraded to 20.04, I was getting the following error: [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2746

Thank you so much for your help! :-)

@fasterforward
Copy link
Author

With the new release of the ODBC driver 17.6 is there an ETA for the php driver for Linux?

https://techcommunity.microsoft.com/t5/sql-server/odbc-driver-17-6-for-sql-server-released/ba-p/1556980

@David-Engel
Copy link
Contributor

@fasterforward Give the 5.8 release a try with ODBC 17.6 and let us know how it goes. We are going to run the same configuration through our PHP test suites and see if 5.8 can simply be certified with ODBC 17.6. I don't have an ETA to share at this time, though. Looking at schedules, we could know this week, or a couple weeks later.

Regards,
David

@yitam
Copy link
Contributor

yitam commented Aug 4, 2020

Hi @fasterforward and others,

As @David-Engel mentioned, SQLSRV drivers 5.8 now officially support the new ODBC driver 17.6.

That being said, Ubuntu 20.04 LTS comes with stricter security measure and if you're using older servers (prior to SQL Server 2017) you still require a workaround (as explained above and other related issues). Please consider upgrading your servers as well.

If you encounter any other problem please create a new issue.

@yitam yitam closed this as completed Aug 4, 2020
@fasterforward
Copy link
Author

fasterforward commented Aug 5, 2020

Hi @fasterforward and others,

As @David-Engel mentioned, SQLSRV drivers 5.8 now officially support the new ODBC driver 17.6.

That being said, Ubuntu 20.04 LTS comes with stricter security measure and if you're using older servers (prior to SQL Server 2017) you still require a workaround (as explained above and other related issues). Please consider upgrading your servers as well.

If you encounter any other problem please create a new issue.

Thanks for you reply and I am happy with your answer!

We will connect to Sql Server 2019, from Ubuntu 20.04 with php 7.4 (default php version of 20.04). Can you confirm that this is fully supported by Microsoft?

@yitam
Copy link
Contributor

yitam commented Aug 5, 2020

Yes @fasterforward and also please check our support matrix for your future reference.

@fasterforward
Copy link
Author

Yes @fasterforward and also please check our support matrix for your future reference.

Thank you for pointing me to the matrix. Very useful information. Have a nice day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants