Share via


Catalog.TableExists Method

Definition

Overloads

TableExists(String, String)

Check if the table or view with the specified name exists in the specified database.

TableExists(String)

Check if the table or view with the specified name exists. This can either be a temporary view or a table/view.

TableExists(String, String)

Check if the table or view with the specified name exists in the specified database.

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

Parameters

dbName
String

Is a name that designates a database.

tableName
String

Is an unqualified name that designates a table.

Returns

bool, true if the table exists in the specified database and false if it does not exist

Applies to

TableExists(String)

Check if the table or view with the specified name exists. This can either be a temporary view or a table/view.

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

Parameters

tableName
String

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

Returns

bool, true if the table exists and false if it does not exist

Applies to