Microsoft.SqlServer.Server.DataAccessKind Enumeration

Describes the type of access to user data for a user-defined method or function.

Syntax

public enum DataAccessKind

Remarks

Describes the type of access to user data for a user-defined method or function.

This enumeration is used in Microsoft.SqlServer.Server.SqlMethodAttribute and Microsoft.SqlServer.Server.SqlFunctionAttribute to indicate whether the method or function uses ADO.NET to connect back to the database using the "context connection."

Note that methods and functions are not allowed to make changes to the database, so the options for this enumeration are None (meaning no data-access performed by the method or function) and Read (meaning that the method or function perform read-only data-access operations, such as executing SELECT statements).

Members

Member NameDescription
None

The method or function does not access user data.

Read

The method or function reads user data.

Requirements

Namespace: Microsoft.SqlServer.Server
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0