I have a table that has a bunch of dependencies, but most records in there actually aren't referenced elsewhere. I would like to issue a delete command but for it to not fail if it encounters such records - just delete the ones without dependencies and leave others intact.
This delete command will be called from my ASP.NET web application and in the future this table might have additional dependencies or structural changes. And I wouldn't want to have to change the delete command each time.
What's the fastest way to do this?