It's really difficult to understand the question, and how to answer it, without understanding what you're doing and why you're doing it. Why do you need to insert data into 2 tables at the same time? The only time in 25 years I've had to do that is for some implementations of polymorphism. So why are you doing it?