I need to automate database schema dumping via scripts. I have the restriction of only having sqlcmd available, so I can not use/install mssql-scripter or other tools.
Do you know if it is possible to generate the schema files and stored procedures with plain sqlcmd?