MrGoodbyte
Programmer
I need to script a table through code so that I can add fields to the table. eg.
If I have a table like this:
Field1 int (Primary Key)
Field2 char(18)
Field3 char(3)
I need to generate a script that looks like this:
Create Table Blah (
Date datetime, /*Part of PK*/
Field1 int, /*Part of PK*/
Field2 char(18),
Field3 char(3),
Name varchar(50),
Status char(1)
)
CONSTRAINT ......I need to script this as well for the Primary Key
Thanks
If I have a table like this:
Field1 int (Primary Key)
Field2 char(18)
Field3 char(3)
I need to generate a script that looks like this:
Create Table Blah (
Date datetime, /*Part of PK*/
Field1 int, /*Part of PK*/
Field2 char(18),
Field3 char(3),
Name varchar(50),
Status char(1)
)
CONSTRAINT ......I need to script this as well for the Primary Key
Thanks