Showing posts with label commit. Show all posts
Showing posts with label commit. Show all posts

Wednesday, March 7, 2012

Delete's Value

Has anyone ever had an issue when they try to commit changes back to the database based on a value they enter in a application...the value that u would use (i.e Select * From Customers Where CustomerID = 'value') to get the rest of the value's pertaining to that value you enter gets deleted from the database....its really wierd but i have that problemYou mean that rows have been deleted by selecting them ?

HTH, Jens K. Suessmeyer.

http://www.sqlserver2005.de
|||I mean the one value i enter in my form gets deleted all the information from that row stay's except for the search value that i use...|||

"My form" is not really descriptive enough. Is this a tool issue? Or a SQL issue with code you have written to support a form?

If it is SQL, can you post some of the table structures? If it is the former, I would probably suggest you use profiler to get a view of the queries being sent and try to match that to what you expect to happen.

|||How would i use the SQL profiler to see whats being sent...I have not used it before but ill check the net too...thanks

Delete with a commit statement

I need to delete about 2 million records in a table in DB2 v7.x, If there a way to code an SQL that would do a commit every 100000 rows, so it would not blow out the transaction logs?
Any help would be appreciated.This is what would do the job for Oracle, i hope it might help you

delete from table
where rownum<100000;
commit;