Closed GoogleCodeExporter closed 8 years ago
Autocommit defaults to False, you need to set it to true:
cnxn.autocommit = True
rows = c.execute("sp_spaceused object_name").fetchall()
cnxn.autocommit = False
or
cnxn = pyodbc.connect(..., autocommit=True)
rows = ...
I've added something to the FAQ for this. Thanks.
Original comment by mkleehammer
on 20 Nov 2010 at 7:02
Original issue reported on code.google.com by
pedri...@gmail.com
on 17 Nov 2010 at 8:43