--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/e03e78e7-24fd-494c-ab66-47f899260c82o%40googlegroups.com.
Hi David,if I understand right you are not anymore able to connect to an external MS SQL database from a Windows server. This does not seem a web2py issue ;-)Anyhow, have you checked that your web2py server and your external MS SQL database are compatible with TLS 1.2? Have you verified it? See here for details.Nico
Il giorno ven 19 giu 2020 alle ore 07:45 Davidiam <david....@gmail.com> ha scritto:
--Good Morning,I would like to know what I would have to modify in order to connect to MS SQL from web2py with TLS 1.2. We are running web2py 2.18.5 on a Windows 2016 IIS server.Yesterday a security patch was installed to disable TLS 1.0 and 1.1 and enable TLS 1.2 and now all our MS SQL DB connections are failing.Thank you very much for your help on this, I would appreciate a rapid reply as our development in web2py is now blocked due to this.Kind Regards,David
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.
Old string :
uri = mssql://DRIVER={SQL Server}
New string :
uri = mssql://DRIVER={ODBC Driver 13 for SQL Server}
We then ran into problems with web2py trying to recreate the auth tables which already existed.
gluon.contrib.pypyodbc.ProgrammingError: ('42S01', "[42S01] [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]There is already an object named 'auth_user' in the database.")
To resolve this, we then needed to add "fake_migrate=True" to our DAL connect string. After doing this we no longer got an error and everything worked correctly. We then removed the fake_migrate parameter and it continued working correctly.
UPDATE : I managed to find the solution so I will post it here for any others that have the same issue :We had to install a new ODBC driver and to modify the MS SQL connection string.
Sorry, I thought the post on top was only for me, I didn't know it was for everyone :S