I have 3 tables, one of which uses 1 of the other 2's table's int PK as their FK. I'm not 100% familiar with SQL Server, but based on existing data and vis a where condition, is there a way to create insert statements for all 3 tables?
EDIT: One of these tables also has a blob, to make things (possibly) more complex.