I need to dump the database structure for a SQL Server database, but I need to do it from a SQL query or sqlcmd script.
Is there a valid way to do it?
Thanks
Open object explorer, right click db, tasks, generate scripts, next, script entire databse and all database objects, save to file, next, next, finish.
Follow the complete steps to generate script with data.
1

2

3

4

5

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With