Прочитај на енглеском

Делите путем


SqlFunctionAttribute.DataAccess Property

Definition

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

C#
public Microsoft.Data.SqlClient.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

Производ Верзије
SqlClient .NET Core 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1
SqlClient .NET Framework 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1
SqlClient .NET Standard 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1