Share via


Catalog.FunctionExists Method

Definition

Overloads

FunctionExists(String)

Check if the function with the specified name exists. FunctionsExists includes in-built functions such as abs. To see if a built-in function exists you must use the unqualified name. If you create a function you can use the qualified name.

FunctionExists(String, String)

Check if the function with the specified name exists in the specified database. If you want to check if a built-in function exists specify the dbName as null or use FunctionExists(functionName).

FunctionExists(String)

Check if the function with the specified name exists. FunctionsExists includes in-built functions such as abs. To see if a built-in function exists you must use the unqualified name. If you create a function you can use the qualified name.

public bool FunctionExists (string functionName);
member this.FunctionExists : string -> bool
Public Function FunctionExists (functionName As String) As Boolean

Parameters

functionName
String

Is either a qualified or unqualified name that designates a function. If no database identifier is provided, it refers to a function in the current database.

Returns

bool, true if the function exists and false it is does not.

Applies to

FunctionExists(String, String)

Check if the function with the specified name exists in the specified database. If you want to check if a built-in function exists specify the dbName as null or use FunctionExists(functionName).

public bool FunctionExists (string dbName, string functionName);
member this.FunctionExists : string * string -> bool
Public Function FunctionExists (dbName As String, functionName As String) As Boolean

Parameters

dbName
String

Is a name that designates a database.

functionName
String

Is an unqualified name that designates a function.

Returns

bool, true if the function exists and false it is does not.

Applies to