Create Tables Detail/Master in Sql Server With Code