Home >Database >Mysql Tutorial >MSSQL生成整个数据库的SQL脚本的工具_MySQL

MSSQL生成整个数据库的SQL脚本的工具_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:57:38805browse

scptxfr.exe的路径要正确
declare @cMd varchar(1000)
set @cmd = 'master.dbo.xp_cmdshell ' +
'''c:/"Microsoft ' +
'SQL Server"' +


'/MSSQL/Upgrade/scptxfr.exe ' +
' /s YourServerName /p YourSAPassword /I /d YourDBName /f ' +
'c:/YourDBName.sql'''
exec (@cmd)

工具参数说明:
SCPTXFR /s /d {[/I] | [/P ]}
{[/F

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn