ms-access

Get data from MS Access and insert into Oracle SQL

Get data from MS Access and insert into Oracle SQL Question: I’m creating a Python code that retrieves data from an MS Access table and inserts it into an Oracle SQL table, but I’m having problems with the execute function of the Oracle cursor when using INSERT INTO statement. When I run the code, the …

Total answers: 1

Create MS Access database from a Python app

Create MS Access database from a Python app Question: I’m working with Python and interacting with a MS Access database via the JayDeBeApi library. Everything works well, I can create tables and all but the file *.accdb need to be created previously in the MS Access software Is there a way to dynamically create the …

Total answers: 1

Parameter error for pyodbc insert/apppend

Parameter error for pyodbc insert/apppend Question: I am trying to insert/append into access a dataframe using pyodbc. However; when I run the code, I get an error: ProgrammingError: (‘The SQL contains 21 parameter markers, but 1 parameter were supplied’, ‘HY000’) my sample code is: for row in tDjango: cursor.execute( ‘INSERT INTO TDjango (Eid, Eventtype, Location, …

Total answers: 1

Python/Pyodbc/SQL – Updating a table and setting a field to a CSV File

Python/Pyodbc/SQL – Updating a table and setting a field to a CSV File Question: I am trying to use pyodbc to update an existing MS Access database table with a very long multiline string. The string is actually a csv that has been turned into a string. The query I am trying to use to …

Total answers: 2

Why isn't Jupyter notebook running from VBA?

Why isn't Jupyter notebook running from VBA? Question: I’m trying to run a Jupyter notebook from Access VBA: Sub import_hawk() Dim objShell As Object Dim PythonExe, PythonScript As String Set objShell = VBA.CreateObject("Wscript.Shell") PythonExe = """C:UsersPhilip.condaenvslatestpython.exe""" PythonScript = "C:UsersPhilipOneDriveBettingCapraTennispolgarapolgara.ipynb" objShell.run PythonExe & PythonScript End Sub When I run it then a box does briefly appear …

Total answers: 1

Is it possible for 64-bit pyodbc to talk to 32-bit MS access database?

Is it possible for 64-bit pyodbc to talk to 32-bit MS access database? Question: I am using 64-bit python anaconda v4.4 which runs python v3. I have MS Access 2016 32-bit version. I would like to use pyodbc to get python to talk to Access. Is it possible to use 64-bit pyodbc to talk to …

Total answers: 4

How to see the real SQL query in Python cursor.execute using pyodbc and MS-Access

How to see the real SQL query in Python cursor.execute using pyodbc and MS-Access Question: I use the following code in Python (with pyodbc for a MS-Access base). cursor.execute(“select a from tbl where b=? and c=?”, (x, y)) It’s Ok but, for maintenance purposes, I need to know the complete and exact SQL string send …

Total answers: 11

how to deal with .mdb access files with python

how to deal with .mdb access files with python Question: Can someone point me in the right direction on how to open a .mdb file in python? I normally like including some code to start off a discussion, but I don’t know where to start. I work with mysql a fair bit with python. I …

Total answers: 6

MS Access library for python

MS Access library for python Question: Is there a library for using MS Access database in python? The win32 module is not as easy as the MySQL library. Is there a simpler way to use MS Access with Python? Asked By: Vicky || Source Answers: Depending on what you want to do, pyodbc might be …

Total answers: 4

What do I need to read Microsoft Access databases using Python?

What do I need to read Microsoft Access databases using Python? Question: How can I access Microsoft Access databases in Python? With SQL? I’d prefere a solution that works with Linux, but I could also settle for Windows. I only require read access. Asked By: Georg Schölly || Source Answers: How about pyodbc? This SO …

Total answers: 12