ConfigurationSetting 方法 - GenerateDatabaseUpgradeScriptConfigurationSetting Method - GenerateDatabaseUpgradeScript

生成一个可用来将报表服务器数据库升级为 SQL Server 2008SQL Server 2008 架构的脚本。Generates a script that can be used to upgrade the report server database to the SQL Server 2008SQL Server 2008 schema.

语法Syntax

Public Sub GenerateDatabaseUpgradeScript(DatabaseName as String, _  
    ServerVersion as String, ByRef Script as String, _  
    ByRef HRESULT as Int32)  
public void GenerateDatabaseUpgradeScript (string DatabaseName,   
    string ServerVersion, out string Script,   
    out Int32 HRESULT);  

参数Parameters

DatabasenameDatabasename
一个字符串,它包含要升级的报表服务器数据库的名称。A string containing the name of the report server database to upgrade.

ServerVersionServerVersion
一个包含报表服务器的版本的字符串。A string containing the version of the report server.

脚本Script
[out] 包含所生成的 SQL 脚本的字符串。[out] A string containing the generated SQL script.

HRESULTHRESULT
[out] 指示调用是成功还是失败的值。[out] Value indicating whether the call succeeded or failed.

返回值Return Value

返回 HRESULT ,指示方法调用是成功还是失败。Returns an HRESULT indicating success or failure of the method call. 值 0 指示方法调用已成功。A value of 0 indicates that the method call was successful. 非零值指示已发生错误。A non-zero value indicates that an error has occurred.

备注Remarks

生成的脚本支持 SQL Server 2000 (8.x)SQL Server 2000 (8.x)SQL Server 2005 (9.x)SQL Server 2005 (9.x)SQL Server 2008SQL Server 2008The generated script supports SQL Server 2000 (8.x)SQL Server 2000 (8.x), SQL Server 2005 (9.x)SQL Server 2005 (9.x), and SQL Server 2008SQL Server 2008.

要求Requirements

命名空间: root\Microsoft\SqlServer\ReportServer\<InstanceName>\v13\Adminroot\Microsoft\SqlServer\ReportServer\<InstanceName>\v13\AdminNamespace: root\Microsoft\SqlServer\ReportServer\<InstanceName>\v13\Adminroot\Microsoft\SqlServer\ReportServer\<InstanceName>\v13\Admin

另请参阅See Also

MSReportServer_ConfigurationSetting 成员MSReportServer_ConfigurationSetting Members