• You can use the built in script generator in SSMS... right click on the db and select 'Generate Scripts'