Table view causing schema lock

Discussion created by jb160 on Apr 21, 2011
Latest reply on Jun 30, 2011 by rzufelt
I am running ArcGIS 9.3.1 and doing some python scripting. In my code I am using a table view of a .dbf  file to do some processing. Everything goes well the first time I run the script. However When I try to re-run the code, I have an error (ERROR 000464: Cannot get exclusive schema lock) at the step I try to delete field from the table I created a table view from (later in the code). It seems that the table view stays in memory at the re-run. I have the gp.overwrite on and delete_management does not allow me to delete table view...

Does anybody already have had this problem and hopefully solved it? Is there a way to clear the memory without closing the software?

Thank you.