Hi Martin,
Heh - sorry about the annoying u"" requirement - that is gone from SOFA now that I have ported it to Python 3.
I suspect the problem is nothing to do with the credentials and
more to do with staleness of the code for connecting to MS SQL
Server.
The attached file is probably where it all goes wrong and where it can be fixed.
It may even be something in this part:
def get_DSN(provider, host, user, pwd, db):The bottom line is that if python can connect to MS SQL Server then we can make SOFA do the same. A good starting point would be for me to make and supply you with a simple Python script that you tweak until it connects to your database successfully. Is that something you or one of your colleagues would be willing to help with? I don't think it will be hard from your end but testing in the real context would be really useful.
"""
http://www.connectionstrings.com/sql-server-2005
"""
DSN = f"""PROVIDER={provider};
Data Source='{host}';
User ID='{user}';
Password='{pwd}';
Initial Catalog='{db}';
Integrated Security=SSPI"""
return DSN
All the best,
Grant
--
---
You received this message because you are subscribed to the Google Groups "sofastatistics" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sofastatistic...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sofastatistics/f419d1bf-4373-4efa-9264-b88779a6a321%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to sofasta...@googlegroups.com.