Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AnsiFile Property
Collapse the table of content
Expand the table of content

ScriptingOptions::AnsiFile Property

Gets or sets the Boolean property that specifies whether the script uses multibyte characters and requires code page 1252 to evaluate characters' meaning.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public:
property bool AnsiFile {
	bool get ();
	void set (bool value);
}

Property Value

Type: Boolean
A Boolean value that specifies whether code page 1252 is used to evaluate characters.If True, code page 1252 is used to evaluate characters.If False (default), code page 1252 is not used to evaluate characters. The code page is determined by the operating system.

The following code example specifies that the script uses multi-byte characters.

Visual Basic

Dim scOps As New ScriptingOptions()
scOps.AnsiFile = true

PowerShell

$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.AnsiFile = $TRUE

Community Additions

ADD
Show:
© 2015 Microsoft