Is there a feature in sql server 2008 management studio to generate database create scripts from existing database without data and with all the relationships maintained.
Asked
Active
Viewed 6,442 times
3 Answers
1
Go into: Tasks
> Generate Scripts
Then,
in Choose Script Options
set Scrpit Data = False (default)

Piotr Dajlido
- 1,982
- 15
- 28

vinhvoz007
- 11
- 1
-3
In SSMS, right click the db and select "Script database as Create to"... whatever you want

iDevlop
- 24,841
- 11
- 90
- 149
-
This is wrong, doing it this way only sets up the actual DB not the tables etc.. within. – leinad13 Jan 24 '17 at 10:35