SqlFunctions Class

.NET Framework (current version)
 

Provides common language runtime (CLR) methods that call functions in the database in LINQ to Entities queries.

Namespace:   System.Data.Objects.SqlClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

System.Object
  System.Data.Objects.SqlClient.SqlFunctions

[<AbstractClass>]
[<Sealed>]
type SqlFunctions = class end

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAcos(Nullable<Decimal>)

A mathematical function that returns the angle, in radians, whose cosine is the specified numerical value. This angle is called the arccosine.

System_CAPS_pubmethodSystem_CAPS_staticAcos(Nullable<Double>)

A mathematical function that returns the angle, in radians, whose cosine is the specified numerical value. This angle is called the arccosine.

System_CAPS_pubmethodSystem_CAPS_staticAscii(String)

Returns the ASCII code value of the left-most character of a character expression.

System_CAPS_pubmethodSystem_CAPS_staticAsin(Nullable<Decimal>)

A mathematical function that returns the angle, in radians, whose sine is the specified numerical value. This angle is called the arcsine.

System_CAPS_pubmethodSystem_CAPS_staticAsin(Nullable<Double>)

A mathematical function that returns the angle, in radians, whose sine is the specified numerical value. This angle is called the arcsine.

System_CAPS_pubmethodSystem_CAPS_staticAtan(Nullable<Decimal>)

A mathematical function that returns the angle, in radians, whose tangent is the specified numerical value. This angle is called the arctangent.

System_CAPS_pubmethodSystem_CAPS_staticAtan(Nullable<Double>)

A mathematical function that returns the angle, in radians, whose tangent is the specified numerical value. This angle is called the arctangent.

System_CAPS_pubmethodSystem_CAPS_staticAtan2(Nullable<Decimal>, Nullable<Decimal>)

Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.

System_CAPS_pubmethodSystem_CAPS_staticAtan2(Nullable<Double>, Nullable<Double>)

Returns the positive angle, in radians, between the positive x-axis and the ray from the origin through the point (x, y), where x and y are the two specified numerical values. The first parameter passed to the function is the y-value and the second parameter is the x-value.

System_CAPS_pubmethodSystem_CAPS_staticChar(Nullable<Int32>)

Returns the character that corresponds to the specified integer ASCII value.

System_CAPS_pubmethodSystem_CAPS_staticCharIndex(Byte[], Byte[])

Returns the starting position of one expression found within another expression.

System_CAPS_pubmethodSystem_CAPS_staticCharIndex(Byte[], Byte[], Nullable<Int32>)

Returns the starting position of one expression found within another expression.

System_CAPS_pubmethodSystem_CAPS_staticCharIndex(Byte[], Byte[], Nullable<Int64>)

Returns the starting position of one expression found within another expression.

System_CAPS_pubmethodSystem_CAPS_staticCharIndex(String, String)

Returns the starting position of one expression found within another expression.

System_CAPS_pubmethodSystem_CAPS_staticCharIndex(String, String, Nullable<Int32>)

Returns the starting position of one expression found within another expression.

System_CAPS_pubmethodSystem_CAPS_staticCharIndex(String, String, Nullable<Int64>)

Returns the starting position of one expression found within another expression.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Byte[])

Returns the checksum value computed over the input argument.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Byte[], Byte[])

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Byte[], Byte[], Byte[])

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Boolean>)

Returns the checksum value computed over the input argument.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Boolean>, Nullable<Boolean>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<DateTime>)

Returns the checksum value computed over the input argument.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<DateTime>, Nullable<DateTime>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<DateTime>, Nullable<DateTime>, Nullable<DateTime>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<DateTimeOffset>)

Returns the checksum value computed over the input argument.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Decimal>)

Returns the checksum value computed over the input argument.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Decimal>, Nullable<Decimal>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Decimal>, Nullable<Decimal>, Nullable<Decimal>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Double>)

Returns the checksum value computed over the input argument.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Double>, Nullable<Double>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Double>, Nullable<Double>, Nullable<Double>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Guid>)

Returns the checksum value computed over the input argument.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Guid>, Nullable<Guid>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<Guid>, Nullable<Guid>, Nullable<Guid>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<TimeSpan>)

Returns the checksum value computed over the input argument.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<TimeSpan>, Nullable<TimeSpan>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(String)

Returns the checksum value computed over the input argument.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(String, String)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksum(String, String, String)

Returns the checksum value computed over the input arguments.

System_CAPS_pubmethodSystem_CAPS_staticChecksumAggregate(IEnumerable<Int32>)

Returns the checksum of the values in a collection. Null values are ignored.

System_CAPS_pubmethodSystem_CAPS_staticChecksumAggregate(IEnumerable<Nullable<Int32>>)

Returns the checksum of the values in a collection. Null values are ignored.

System_CAPS_pubmethodSystem_CAPS_staticCos(Nullable<Decimal>)

Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticCos(Nullable<Double>)

Returns the trigonometric cosine of the specified angle, in radians, in the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticCot(Nullable<Decimal>)

A mathematical function that returns the trigonometric cotangent of the specified angle, in radians.

System_CAPS_pubmethodSystem_CAPS_staticCot(Nullable<Double>)

A mathematical function that returns the trigonometric cotangent of the specified angle, in radians.

System_CAPS_pubmethodSystem_CAPS_staticCurrentTimestamp()

Returns the current date and time.

System_CAPS_pubmethodSystem_CAPS_staticCurrentUser()

Returns the name of the current user.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Byte[])

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Boolean>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<DateTime>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<DateTimeOffset>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Decimal>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Double>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Guid>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<TimeSpan>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(String)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDateAdd(String, Nullable<Double>, Nullable<DateTime>)

Returns a new datetime value based on adding an interval to the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDateAdd(String, Nullable<Double>, Nullable<DateTimeOffset>)

Returns a new date value based on adding an interval to the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDateAdd(String, Nullable<Double>, Nullable<TimeSpan>)

Returns a new time span value based on adding an interval to the specified time span.

System_CAPS_pubmethodSystem_CAPS_staticDateAdd(String, Nullable<Double>, String)

Returns a new datetime value based on adding an interval to the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<DateTime>, Nullable<DateTime>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<DateTime>, Nullable<DateTimeOffset>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<DateTime>, Nullable<TimeSpan>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<DateTime>, String)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<DateTimeOffset>, Nullable<DateTime>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<DateTimeOffset>, Nullable<TimeSpan>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<DateTimeOffset>, String)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<TimeSpan>, Nullable<DateTime>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<TimeSpan>, Nullable<DateTimeOffset>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<TimeSpan>, Nullable<TimeSpan>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, Nullable<TimeSpan>, String)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, String, Nullable<DateTime>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, String, Nullable<DateTimeOffset>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, String, Nullable<TimeSpan>)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateDiff(String, String, String)

Returns the count of the specified datepart boundaries crossed between the specified start date and end date.

System_CAPS_pubmethodSystem_CAPS_staticDateName(String, Nullable<DateTime>)

Returns a character string that represents the specified datepart of the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDateName(String, Nullable<DateTimeOffset>)

Returns a character string that represents the specified datepart of the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDateName(String, Nullable<TimeSpan>)

Returns a character string that represents the specified datepart of the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDateName(String, String)

Returns a character string that represents the specified datepart of the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDatePart(String, Nullable<DateTime>)

Returns an integer that represents the specified datepart of the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDatePart(String, Nullable<DateTimeOffset>)

Returns an integer that represents the specified datepart of the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDatePart(String, Nullable<TimeSpan>)

Returns an integer that represents the specified datepart of the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDatePart(String, String)

Returns an integer that represents the specified datepart of the specified date.

System_CAPS_pubmethodSystem_CAPS_staticDegrees(Nullable<Decimal>)

Returns the corresponding angle in degrees for an angle specified in radians.

System_CAPS_pubmethodSystem_CAPS_staticDegrees(Nullable<Double>)

Returns the corresponding angle in degrees for an angle specified in radians.

System_CAPS_pubmethodSystem_CAPS_staticDegrees(Nullable<Int32>)

Returns the corresponding angle in degrees for an angle specified in radians.

System_CAPS_pubmethodSystem_CAPS_staticDegrees(Nullable<Int64>)

Returns the corresponding angle in degrees for an angle specified in radians.

System_CAPS_pubmethodSystem_CAPS_staticDifference(String, String)

Returns an integer value that indicates the difference between the SOUNDEX values of two character expressions.

System_CAPS_pubmethodSystem_CAPS_staticExp(Nullable<Decimal>)

Returns the exponential value of the specified float expression.

System_CAPS_pubmethodSystem_CAPS_staticExp(Nullable<Double>)

Returns the exponential value of the specified float expression.

System_CAPS_pubmethodSystem_CAPS_staticGetDate()

Returns the current database system timestamp as a datetime value without the database time zone offset. This value is derived from the operating system of the computer on which the instance of SQL Server is running.

System_CAPS_pubmethodSystem_CAPS_staticGetUtcDate()

Returns the current database system timestamp as a datetime value. The database time zone offset is not included. This value represents the current UTC time (Coordinated Universal Time). This value is derived from the operating system of the computer on which the instance of SQL Server is running.

System_CAPS_pubmethodSystem_CAPS_staticHostName()

Returns the workstation name.

System_CAPS_pubmethodSystem_CAPS_staticIsDate(String)

Indicates whether the input value is a valid date or time.

System_CAPS_pubmethodSystem_CAPS_staticIsNumeric(String)

Indicates whether the input value is a valid numeric type.

System_CAPS_pubmethodSystem_CAPS_staticLog(Nullable<Decimal>)

Returns the natural logarithm of the specified input value.

System_CAPS_pubmethodSystem_CAPS_staticLog(Nullable<Double>)

Returns the natural logarithm of the specified input value.

System_CAPS_pubmethodSystem_CAPS_staticLog10(Nullable<Decimal>)

Returns the base-10 logarithm of the specified input value.

System_CAPS_pubmethodSystem_CAPS_staticLog10(Nullable<Double>)

Returns the base-10 logarithm of the specified input value.

System_CAPS_pubmethodSystem_CAPS_staticNChar(Nullable<Int32>)

Returns the Unicode character with the specified integer code, as defined by the Unicode standard.

System_CAPS_pubmethodSystem_CAPS_staticPatIndex(String, String)

Returns the starting position of the first occurrence of a pattern in a specified expression, or zeros if the pattern is not found, on all valid text and character data types.

System_CAPS_pubmethodSystem_CAPS_staticPi()

Returns the constant value of pi.

System_CAPS_pubmethodSystem_CAPS_staticQuoteName(String)

Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.

System_CAPS_pubmethodSystem_CAPS_staticQuoteName(String, String)

Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.

System_CAPS_pubmethodSystem_CAPS_staticRadians(Nullable<Decimal>)

Returns the radian measure corresponding to the specified angle in degrees.

System_CAPS_pubmethodSystem_CAPS_staticRadians(Nullable<Double>)

Returns the radian measure corresponding to the specified angle in degrees.

System_CAPS_pubmethodSystem_CAPS_staticRadians(Nullable<Int32>)

Returns the radian measure corresponding to the specified angle in degrees.

System_CAPS_pubmethodSystem_CAPS_staticRadians(Nullable<Int64>)

Returns the radian measure corresponding to the specified angle in degrees.

System_CAPS_pubmethodSystem_CAPS_staticRand()

Returns a pseudo-random float value from 0 through 1, exclusive.

System_CAPS_pubmethodSystem_CAPS_staticRand(Nullable<Int32>)

Returns a pseudo-random float value from 0 through 1, exclusive.

System_CAPS_pubmethodSystem_CAPS_staticReplicate(String, Nullable<Int32>)

Repeats a string value a specified number of times.

System_CAPS_pubmethodSystem_CAPS_staticSign(Nullable<Decimal>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticSign(Nullable<Double>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticSign(Nullable<Int32>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticSign(Nullable<Int64>)

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

System_CAPS_pubmethodSystem_CAPS_staticSin(Nullable<Decimal>)

Returns the trigonometric sine of the specified angle.

System_CAPS_pubmethodSystem_CAPS_staticSin(Nullable<Double>)

Returns the trigonometric sine of the specified angle.

System_CAPS_pubmethodSystem_CAPS_staticSoundCode(String)

Converts an alphanumeric string to a four-character (SOUNDEX) code to find similar-sounding words or names.

System_CAPS_pubmethodSystem_CAPS_staticSpace(Nullable<Int32>)

Returns a string of repeated spaces.

System_CAPS_pubmethodSystem_CAPS_staticSquare(Nullable<Decimal>)

Returns the square of the specified number.

System_CAPS_pubmethodSystem_CAPS_staticSquare(Nullable<Double>)

Returns the square of the specified number.

System_CAPS_pubmethodSystem_CAPS_staticSquareRoot(Nullable<Decimal>)

Returns the square root of the specified number.

System_CAPS_pubmethodSystem_CAPS_staticSquareRoot(Nullable<Double>)

Returns the square root of the specified number.

System_CAPS_pubmethodSystem_CAPS_staticStringConvert(Nullable<Decimal>)

Returns character data converted from numeric data.

System_CAPS_pubmethodSystem_CAPS_staticStringConvert(Nullable<Decimal>, Nullable<Int32>)

Returns character data converted from numeric data.

System_CAPS_pubmethodSystem_CAPS_staticStringConvert(Nullable<Decimal>, Nullable<Int32>, Nullable<Int32>)

Returns character data converted from numeric data.

System_CAPS_pubmethodSystem_CAPS_staticStringConvert(Nullable<Double>)

Returns character data converted from numeric data.

System_CAPS_pubmethodSystem_CAPS_staticStringConvert(Nullable<Double>, Nullable<Int32>)

Returns character data converted from numeric data.

System_CAPS_pubmethodSystem_CAPS_staticStringConvert(Nullable<Double>, Nullable<Int32>, Nullable<Int32>)

Returns character data converted from numeric data.

System_CAPS_pubmethodSystem_CAPS_staticStuff(String, Nullable<Int32>, Nullable<Int32>, String)

Inserts a string into another string. It deletes a specified length of characters in the target string at the start position and then inserts the second string into the target string at the start position.

System_CAPS_pubmethodSystem_CAPS_staticTan(Nullable<Decimal>)

Returns the trigonometric tangent of the input expression.

System_CAPS_pubmethodSystem_CAPS_staticTan(Nullable<Double>)

Returns the trigonometric tangent of the input expression.

System_CAPS_pubmethodSystem_CAPS_staticUnicode(String)

Returns the integer value, as defined by the Unicode standard, for the first character of the input expression.

System_CAPS_pubmethodSystem_CAPS_staticUserName()

Returns a database user name corresponding to a specified identification number.

System_CAPS_pubmethodSystem_CAPS_staticUserName(Nullable<Int32>)

Returns a database user name corresponding to a specified identification number.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: