Closed GoogleCodeExporter closed 9 years ago
Does the table have an IDENTITY column? I don't think that SQL Server will
return a row id if the table has no IDENTITY column.
pymssql uses SCOPE_IDENTITY() to get the row id. So you could test this
manually in SSMS by doing an INSERT into your table and then doing SELECT
SCOPE_IDENTITY(). If this doesn't work, then pymssql won't be able to return a
lastrowid either.
I'm closing this since it's very old, but if it's still a problem, post a
comment and I'll reopen it.
Original comment by msabr...@gmail.com
on 7 Aug 2013 at 6:13
Original issue reported on code.google.com by
Florian....@fankserver.com
on 4 Sep 2012 at 10:53