C:\Program Files\Microsoft SQL Server\MSSQL\Upgrade\scptxfr /s [Server address] /d [Database name] /P [sa password] /F "[Output file path]" /q /H /Y /H