Forum Discussion
Anonymous
4 years agoNot applicable
Python requests working in Power Query not when loaded in Data Model
My Python script is not successfully loading into the Data Model. The script works; it runs in an IDE (I use Pycharm), and also runs and returns data in the Power Query Editor. I am using it to get d...
Anonymous
4 years agoNot applicable
I am having a similar issue, but I am pulling data to a csv then trying to import them in to SQL table daily and almost same error.
import pyodbc # Some other example server values are # server = 'myserver.database.windows.net' # for a named instance # server = 'myserver,port' # to specify an alternate port server = 'tcp:myserver.database.windows.net' database = 'mydb' username = 'myusername' password = 'mypassword' cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password) cursor = cnxn.cursor()
Anonymous
4 years agoNot applicable
Anonymous, sorry, what is your actual error message?