Share via


SqlFunctionAttribute.DataAccess Property

Definition

Indicates whether the function involves access to user data stored in the local instance of SQL Server.

public Microsoft.SqlServer.Server.DataAccessKind DataAccess { get; set; }

Property Value

DataAccessKind.None: Does not access data. DataAccessKind.Read: Only reads user data.

Remarks

The default is None.DataAccess is also required when connecting to remote servers if transactions integration is required (the default).

If a Transact-SQL query is executed from inside a table-valued function (TVF), the Read property should be set.

Applies to