Closed GoogleCodeExporter closed 8 years ago
Are you issuing a commit afterwards? db-api drivers are transactional by
default so for any changes to be applied you'll need to issue one.
Original comment by dam...@gmail.com
on 3 May 2012 at 12:45
marca@marca-mac:~/dev/hg-repos/pymssql$ cat issue_87.py
import pymssql
conn =
pymssql.connect(host="xxx",user="xxx",password="xxx$",database="xxx",as_dict=Tru
e)
cur = conn.cursor()
cur.execute("SELECT * INTO test_table2 FROM test_table")
# conn.commit()
marca@marca-mac:~/dev/hg-repos/pymssql$ python2.6 issue_87.py
# test_table2 not showing up in SSMS (because Python program didn't commit
transaction)
marca@marca-mac:~/dev/hg-repos/pymssql$ cat issue_87.py
import pymssql
conn =
pymssql.connect(host="xxx",user="xxx",password="xxx$",database="xxx",as_dict=Tru
e)
cur = conn.cursor()
cur.execute("SELECT * INTO test_table2 FROM test_table")
conn.commit() # <-- Now we commit
marca@marca-mac:~/dev/hg-repos/pymssql$ python2.6 issue_87.py
# test_table2 shows up in SSMS (because Python program did commit transaction)
So I think this can be closed.
Original comment by msabr...@gmail.com
on 7 Aug 2013 at 3:28
Original comment by msabr...@gmail.com
on 7 Aug 2013 at 3:37
Original issue reported on code.google.com by
maheshmo...@gmail.com
on 29 Mar 2012 at 1:25