This is my first real project in SQL, so I could do with some advice in the best way forward for future reference.
I have created two SQL database's one live, one development. All the design work has been done on the Development Db, I now want to create the tbl's, views etc in the Live Db. However when I generate the SQL Script, the syntax is ok, but the order of creation is wrong. I.e it tries to create a view based on a table that the script hasn't run yet.
Obviously I can go through the whole script and cut and paste it into the correct order, but I am sure it is not meant to be this awkward.
Can you help??
I have created two SQL database's one live, one development. All the design work has been done on the Development Db, I now want to create the tbl's, views etc in the Live Db. However when I generate the SQL Script, the syntax is ok, but the order of creation is wrong. I.e it tries to create a view based on a table that the script hasn't run yet.
Obviously I can go through the whole script and cut and paste it into the correct order, but I am sure it is not meant to be this awkward.
Can you help??