Hello,
I would like to create a Stored Procedure which will create a table then update it's indexes and relationships.
The problem is that when I write the CREATE TABLE and afterwards the ALTER TABLE it doesn't compile since the Table doesn't exist. So how can I creae a table and update it's indexes and relationships at the same stored procedure? A code example could be helpful...
I would like to create a Stored Procedure which will create a table then update it's indexes and relationships.
The problem is that when I write the CREATE TABLE and afterwards the ALTER TABLE it doesn't compile since the Table doesn't exist. So how can I creae a table and update it's indexes and relationships at the same stored procedure? A code example could be helpful...