I have a SQL script which create few tables.
Currently, I have to paste the scripts to the SQL Enterprise Manager
and highlight one by one to run it. It can't seem to run it as "one
unit".
My script looks like below:
CREATE TABLE T1 AS ...;
CREATE TABLE T2 AS ...;
Any comments?
Thanks in advance.You can run them as a single unit, if these are just CREATE TABLE
statements. Are you getting any errors?
However if you are creating objects with cyclic dependencies you may have to
make sure the dependant objects must be created before the parent object.
One alternative to this is to use CREATE SCHEMA DDL & details can be found
in SQL Server Books Online.
--
- Anith
( Please reply to newsgroups only )
No comments:
Post a Comment