Server.InstallDataDirectory Property
Applies To: SQL Server 2016 Preview
Gets the local Windows directory where the installation data is stored for the instance of SQL Server.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)]
public string InstallDataDirectory { get; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Matrix)]
property String^ InstallDataDirectory {
String^ get();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)>]
member InstallDataDirectory : string with get
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Matrix)>
Public ReadOnly Property InstallDataDirectory As String
Property Value
Type: System.String
A String object that specifies the local directory where the installation data is stored for the instance of SQL Server.
Examples
Legacy Code Example
C#
Server srv = new Server("(local)");
Console.WriteLine("SQL Server installation data is stored in the " + srv.FileStreamShareName.ToString() + " directory.");
PowerShell
$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "SQL Server installation data is stored in the" $srv.FileStreamShareName "directory."
See Also
Server Class
Microsoft.SqlServer.Management.Smo Namespace
Broken link. The 'b1d56f2f-603f48f2-b902-c715f14a6db9' GUID is not correct.Unable to find linked topic '776ac273-bbe5-45e2-8bc8-a6f2b9cac03a'.
Return to top