共用方式為


SqlAssembly.Create 方法 (String)

Creates an assembly on the instance of SQL Server as defined by the SqlAssembly object.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub Create ( _
    primaryAssemblyServerPath As String _
)
'用途
Dim instance As SqlAssembly 
Dim primaryAssemblyServerPath As String

instance.Create(primaryAssemblyServerPath)
public void Create(
    string primaryAssemblyServerPath
)
public:
void Create(
    String^ primaryAssemblyServerPath
)
member Create : 
        primaryAssemblyServerPath:string -> unit
public function Create(
    primaryAssemblyServerPath : String
)

參數

  • primaryAssemblyServerPath
    型別:System.String
    A String value that specifies the server path (which can be a network share) of a single module assembly that contains a manifest.

備註

SQL Server searches in the path for assemblies the referenced assembly depends on and that have not yet been installed. SQL Server accesses the indicated files directly and therefore needs to have sufficient access rights to complete this operation successfully.

範例

呼叫方法

請參閱

參考

SqlAssembly 類別

Create 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

CREATE ASSEMBLY (Transact-SQL)