Export (0) Print
Expand All

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)

public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::Matrix)]
property String^ InstallDataDirectory {
	String^ get();
}

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.

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."
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft