Export (0) Print
Expand All

SqlFunctionAttribute.DataAccess Property

Note: This property is new in the .NET Framework version 2.0.

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

Namespace: Microsoft.SqlServer.Server
Assembly: System.Data (in system.data.dll)

public DataAccessKind DataAccess { get; set; }
/** @property */
public DataAccessKind get_DataAccess ()

/** @property */
public void set_DataAccess (DataAccessKind value)

public function get DataAccess () : DataAccessKind

public function set DataAccess (value : DataAccessKind)

Property Value

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

It 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 DataAccessKind.Read property should be set.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft