Edit

Share via


SqlFunctions.SoundCode(String) Method

Definition

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

public:
 static System::String ^ SoundCode(System::String ^ arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SOUNDEX")]
public static string SoundCode (string arg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SOUNDEX")>]
static member SoundCode : string -> string
Public Shared Function SoundCode (arg As String) As String

Parameters

arg
String

A valid string.

Returns

The SOUNDEX code of the input string.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see SOUNDEX (Transact-SQL).

Applies to