pyodbc connection to MSSQL 2005 server via IIS7
问题 I have IIS7 installed and configured on my laptop and with a python cgi interface. I can run the python script from within Eclipse and get the results I am looking for from the database. But when I run the script from the webpage I get an authentication error. It seems that the connection string is not passing the credentials to the SQL server. Any thoughts? import pyodbc import cgi import cgitb; cgitb.enable() cnxn = pyodbc.connect(driver='{SQL Server}', server='SERVER\INSTANCE', Trusted