System.Data
2.0.0.0
System.Attribute
System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)
To be added.
Used to mark a method definition of a user-defined aggregate as a function in SQL Server. The properties on the attribute reflect the physical characteristics used when the type is registered with SQL Server.
Constructor
To be added.
An optional attribute on a user-defined aggregate, used to indicate that the method should be registered in SQL Server as a function. Also used to set the , , , , , , and properties of the function attribute.
2.0.0.0
Property
Microsoft.SqlServer.Server.DataAccessKind
To be added.
The default is . 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.
Indicates whether the function involves access to user data stored in the local instance of SQL Server.
2.0.0.0
Property
System.Boolean
To be added.
A user-defined function is said to be deterministic if it always produces the same output values given the same input values and the same database state.
The property is also useful for indexing the result of the function in the form of indexed computed columns and indexed views. If this property is not specified, the function is assumed to be non-deterministic.
Functions that access local data can be deterministic. The data access characteristic is captured separately by the and properties.
Note that data access to remote servers (for example, using a to connect to another SQL Server instance) is available in user-defined functions. However, you must still honor the declaration. If the common language runtime (CLR) function is marked as deterministic, it should not cause side-effects in the remote server. While side-effects against the context connection are restricted, SQL Server will not enforce the restriction for side-effects over remote connections.
The default value of this attribute is false.
Do not mark a function as deterministic if the function does not always produce the same output values, given the same input values and the same database state. Marking a function as deterministic when the function is not truly deterministic can result in corrupted indexed views and computed columns.
Indicates whether the user-defined function is deterministic.
2.0.0.0
Property
System.Boolean
To be added.
Precision of a function is one of the properties used to determine if computed columns that use this function can be indexed.
The default value of this attribute is false.
Indicates whether the function involves imprecise computations, such as floating point operations.
2.0.0.0
Property
Microsoft.SqlServer.Server.SystemDataAccessKind
To be added.
The default is .
Indicates whether the function requires access to data stored in the system catalogs or virtual system tables of SQL Server.
2.0.0.0