我想定期自动生成数据库脚本.这可能吗.
要为对象生成脚本,您必须传递最多六个参数:
exec proc_genscript @ServerName = 'Server Name', @DBName = 'Database Name', @ObjectName = 'Object Name to generate script for', @ObjectType = 'Object Type', @TableName = 'Parent table name for index and trigger', @ScriptFile = 'File name to save the script'
http://www.databasejournal.com/features/mssql/article.php/2205291