Hi all,I'll refrase my problem... Sorry for the inconvenience!What I want to do is copy the complete database structure (tables, stored procedures, views, functions etc) from one database to another. Perhaps generate a script first that I can execute? The script would have to look something like this:CREATE TABLE [dbo].[TableOne] ( [FK_KeyOne] [int] NOT NULL , [FK_KeyTwo] [int] NULL , [KeyThree] [varchar] (50) NULL ) ON [PRIMARY]GOCREATE TABLE [dbo].[TableTwo] ( [FK_KeyOne] [int] NOT NULL , [FK_KeyTwo] [int] NULL , [KeyThree] [varchar] (100) NULL , [KeyFour] [varchar] (50) NULL , [KeyFive] [varchar] (50) NULL , [KeySix] [bit] NOT NULL ) ON [PRIMARY]GOcreate procedure ProcedureOne@variableOne int,@variableTwo textasinsert into TableOne(variableOne, variableTwo) values (@variableOne, @variableTwo)GO
Just like the script that you get in Enterprise Manager when you say "Generate Script"Any clues?Thank you 