anusdesai
asked on
how to Create scripts with sql 2005 to create table and fields and also to add fields to existing tables ....
Hi Experts,
how to Create scripts with sql 2005 to create table and fields and also to add fields to existing tables .
Regards.
how to Create scripts with sql 2005 to create table and fields and also to add fields to existing tables .
Regards.
ASKER
This to to create table..but hoew to generate script of this so that my client can run on his machine to create tables in his database....
with SQL Server, you can open Enterprise Manager, drill down to the Table level, the Right Click on each table, and choose Generate SQL Script - this will generate the necessary SQL to create the Table Schema, when executed on as New SQL Server instance.
Is that what you are after?
AW
Is that what you are after?
AW
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
be right back.....
in order to alter the existing tables use
ALTER TABLE putTableName
ADD someOtherColumn int