views:

129

answers:

2

I have one stored procedure to backup the database. It will backup metadata as well as data.

Is there any option to back up the database with out data. ie, back up only the schema (Empty tables).

I don't want to script the database.

+2  A: 

There's a solution already on StackOverflow - here.

terR0Q
+1 for resourcefulness
OMG Ponies
he doesn't want to script the database though, but neverthless simple solution :)
Mahesh Velaga
@Mahesh VelagaBut this solution can be scripted as well. If not, that'll be awful as a daily task :)
terR0Q
A: 

You can do using SQL SERVER SCRIPT WIZARD

priyanka.sarkar