Matthew van Eerde wrote:
 |
W3bbo wrote:
 |
Matthew van Eerde wrote:I don't believe there is a convincing solution to this problem. |
How does SQL Server Enterprise Manager or Access delete specific rows then?
|
Good question

I just created a table on my db server, since it lacks an identity colum, Access doesn't have any "Insert record" stuff, but I was able to get some stuff in with Query Analyzer.
After I inserted some rows, Access doesn't let me delete stuff.
Enterprise Manager has the option to delete a specific row available, but gives this error message:
---------------------------
SQL Server Enterprise Manager
---------------------------
Key column information is insufficient or incorrect. Too many rows were affected by update.
---------------------------
OK Help
---------------------------
After executing this SQL (captured with the Profiler tool):
set implicit_transactions on
exec sp_executesql N'DELETE FROM "AMS2".."Foobar" WHERE "Foo"=@P1 AND "Bar"=@P2', N'@P1 varchar(10),@P2 varchar(10)', 'foo ', 'bar '
IF @@TRANCOUNT > 0 ROLLBACK TRAN
So I guess it's impossible then.
UPDATE: I didn't know about Transaction Rollbacks until now, I'm impressed.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.