Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Server.InstallSharedDirectory Property

 

Applies To: SQL Server 2016 Preview

Gets the remote shared 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)

[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.Matrix)>]
member InstallSharedDirectory : string with get

Property Value

Type: System.String

A String object that specifies the remote shared 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.InstallSharedDirectory + " remote shared directory.");

PowerShell

$srv = new-Object Microsoft.SqlServer.Management.Smo.Server("(local)")
Write-Host "SQL Server installation data is stored in the" $srv.InstallSharedDirectory "remote shared directory."
Return to top
Show:
© 2015 Microsoft