Udostępnij za pośrednictwem


Niestandardowe atrybuty dla środowiska CLR procedur

The attributes listed can be applied to common language runtime (CLR) routines, user-defined types, and user-defined aggregates that are registered in Microsoft SQL Server.Jeśli atrybut nie jest stosowany, SQL Server przyjmuje wartość domyślną. Atrybuty wymienione są zdefiniowane w Microsoft.SqlServer.Server obszar nazw.

Atrybut SqlUserDefinedAggregate

The SqlUserDefinedAggregate atrybut indicates that the metoda should be registered as a user-defined agregacja. Każdy zdefiniowany przez użytkownika agregacja musi być odnotowany z tym atrybut.

Aby uzyskać więcej informacji zobacz SqlUserDefinedAggregateAttribute.

Atrybut SqlFunction

The SqlFunction atrybut indicates the metoda should be registered as a funkcja, with the appropriate funkcja attributes zestaw.

Aby uzyskać więcej informacji zobacz SqlFunctionAttribute.

Atrybut SqlFacet

The SqlFacet atrybut is used to return information about the return type of a typ zdefiniowany przez użytkownika (UDT) wyrażenie.

Aby uzyskać więcej informacji zobacz SqlFacetAttribute.

Atrybut SqlProcedure

The SqlProcedure atrybut indicates the metoda should be registered as a procedura przechowywana. Ten atrybut jest używany tylko za pomocą programu Visual Studio automatycznie zarejestrować określona metoda jak procedura przechowywana; nie jest on używany przez SQL Server.

Aby uzyskać więcej informacji zobacz SqlProcedureAttribute.

Atrybut SqlTrigger

The SqlTrigger atrybut indicates the metoda should be registered as a trigger.

Aby uzyskać więcej informacji zobacz SqlTriggerContext.

SqlUserDefinedTypeAttribute

SqlUserDefinedTypeAttribute można stosować do definicji klasy w zestawie.Powoduje on SQL Server Aby utworzyć typ zdefiniowany przez użytkownika, które jest powiązane z definicji klasy, który ma ten atrybut niestandardowy.

Aby uzyskać więcej informacji zobacz SqlUserDefinedTypeAttribute.

Atrybut SqlMethod

The SqlMethod atrybut is used to indicate the determinism and data access properties of a metoda or a właściwość on a UDT.

Aby uzyskać więcej informacji zobacz SqlMethodAttribute.