Round Posted December 15, 2006 Share Posted December 15, 2006 Hello all,This may be a question for the IIS forum but i'll put it here anyway.Is there a way to copy a whole DB including tables, structure, views, and stored procedures but not the data so that I am left with an empty db?We are using IIS and I use SQL Server Enterprise Manager to view and query the db's from the back end, but I can't work out ow to copy a db.CheersP.S Thanks to all for all help previously, it's all much appreciated. Merry Xmas.Cheers Link to comment https://forums.phpfreaks.com/topic/30736-copy-database-structure/ Share on other sites More sharing options...
argoSquirrel Posted December 31, 2006 Share Posted December 31, 2006 Yeah.Right click your DB >> tasks >> Generate Scripts.I would also set Use Database to True as it will allow you to easily make a database of another name. Link to comment https://forums.phpfreaks.com/topic/30736-copy-database-structure/#findComment-150227 Share on other sites More sharing options...
bibby Posted January 21, 2007 Share Posted January 21, 2007 I couldn't help you with views or procedures, but structure is easy.CREATE TABLE copySELECT * FROM original WHERE 0; Link to comment https://forums.phpfreaks.com/topic/30736-copy-database-structure/#findComment-165513 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.