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
)
public static String GenerateApplicationServicesScripts (
	boolean install, 
	SqlFeatures features, 
	String database
)
public static function GenerateApplicationServicesScripts (
	install : boolean, 
	features : SqlFeatures, 
	database : String
) : String
Not applicable.

Parameters

install

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

features

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

database

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

Return Value

Returns the generated script code.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: