Re: Simple mx.ODBC prob seeks simple answer

2007-04-06 Thread Greg Corradini
ines the whole set of > changes as a transaction. > > 2. It would be even more efficient not to use a loop at all but to use > the cursor's executemany() method to perform all inserts with a single > call as follows: > > #Put the fetched Data into Table_II > c

Re: Simple mx.ODBC prob seeks simple answer

2007-04-06 Thread Steve Holden
Greg Corradini wrote: > Hello all, > I'm having trouble inserting an SQL selection into a new MS Access table. I > get a parameter error on my insert statement when I try this (see below for > code and error msg). I'm not sure if 'insert' or 'update' is the route I > should be taking. > > CODE: >

Simple mx.ODBC prob seeks simple answer

2007-04-06 Thread Greg Corradini
ecker/Access_SQL.py", line 40, in ? curse.execute('Insert into Table_II (TISCODE,EXISTSIN) values (%s,%s)'%(i[0],i[1])) ProgrammingError: ('07001', -3010, '[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.', 4612) -- View this message in context: http://www.nabble.com/Simple-mx.ODBC-prob-seeks-simple-answer-tf3536661.html#a9871804 Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list