ScriptingOptions.FileName 속성
Gets or sets the name of the file to which the generated script is output.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Property FileName As String
Get
Set
‘사용 방법
Dim instance As ScriptingOptions
Dim value As String
value = instance.FileName
instance.FileName = value
public string FileName { get; set; }
public:
property String^ FileName {
String^ get ();
void set (String^ value);
}
member FileName : string with get, set
function get FileName () : String
function set FileName (value : String)
속성 값
유형: System.String
A String value that specifies the name of the file to which the generated script is output.
예
The following code example sets the name of the scripts output file.
Visual Basic
Dim scOps As New ScriptingOptions()
scOps.FileName = "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\SampleFileName.sql"
PowerShell
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.FileName = "C:\Program Files\Microsoft SQL Server\100\DTS\ForEachEnumerators\SampleFileName.sql"
참고 항목
참조
Microsoft.SqlServer.Management.Smo 네임스페이스