I need to backup SQL Server Db with a lot of data in it and import it into another environment for updating and testing. Since I'm not interested in data, I just want to recreate the schema on my other server. There is an option called Create Script, but throws errors on the destination server.
Curiously, if someone tried to write an SQL script that would skip all the tables in db and clear the rows, I could just back up the schema as a .bak file and restore it to another server.
source
share