Try the import/export wizard, this will get you the data for sure if the restrictions re not copied you will have to do it manually with each table as said above,
to copy table/data use
and for the restriction the SQL will produce something like
to copy table/data use
Code:
SELECT * INTO test.dbo.Table_1 FROM source.dbo.Table_1;
Code:
ALTER TABLE test.dbo.Table_1 ADD CONSTRAINT PK_Table_1 PRIMARY KEY (id)
Comment