我有一个代码,可以将数据从多个工作表复制到主工作表。所有数据都粘贴到第一行。我想知道第一行是否包含预定义的标头,并且所有数据都应粘贴到标头下方的第二列中。
Excel Files [Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)]
MS Access Database [Microsoft Access Driver (*.mdb, *.accdb)]
Sample Amazon Redshift DSN [Amazon Redshift (x64)]
---------------------------------------------------------------------------
InterfaceError Traceback (most recent call last)
<ipython-input-12-816aa9101ab7> in <module>()
16 show_odbc_sources()
17
---> 18 conn = pyodbc.connect(r'driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=C:\\Users\\username\\Desktop\\E CX DB.accdb;')
19 cursor = conn.cursor()
InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')