Export (0) Print
Expand All

SqlServices.GenerateApplicationServicesScripts Method

Generates the SQL scripts for the selected features. The scripts will reference the database indicated by the database parameter.

Namespace:  System.Web.Management
Assembly:  System.Web (in System.Web.dll)

public static string GenerateApplicationServicesScripts(
	bool install,
	SqlFeatures features,
	string database


Type: System.Boolean

true to generate a script that installs the specified features; false to generate a script that removes the features.

Type: System.Web.Management.SqlFeatures

A bitwise combination of the SqlFeatures values, specifying the specific features for which to generate scripts.

Type: System.String

The name of the SQL Server database to use in the generated scripts.

Return Value

Type: System.String
Returns the generated script code.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft