0

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
  • 1
    You could run TRUNCATE TABLE statements for each table prior to running your backup sproc, assuming you don't care about/need the currently existing data at all. Commented Nov 27, 2009 at 7:06
  • Duplicate: stackoverflow.com/questions/3589/backup-sql-schema-only Commented Nov 27, 2009 at 7:12

2 Answers 2

2

There's a solution already on StackOverflow - here.

Sign up to request clarification or add additional context in comments.

2 Comments

he doesn't want to script the database though, but neverthless simple solution :)
@Mahesh Velaga But this solution can be scripted as well. If not, that'll be awful as a daily task :)
0

You can do using SQL SERVER SCRIPT WIZARD

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.