0

I'm using PyODBC for SQL Server 2008 database engine and it works well. I can retrieve records and execute procedures and views with no problem.

My issue is I can't connect to SQL Server 2008 Analysis Server using PyODBC. Following list shows what I've tried:

cnxn = pyodbc.connect(r'Driver={SQL Server};Server=127.0.0.1;Database=DB1;Trusted_Connection=yes;')

And

cnxn = pyodbc.connect('DRIVER={SQL Server};SERVER=127.0.0.1;DATABASE=DB1;Trusted_Connection=yes;UID=TB\\user;PWD=123123')

What's the problem? How can I address this issue?

Afshin Mehrabani
  • 33,262
  • 29
  • 136
  • 201

0 Answers0