Dayana
Dayana

Reputation: 1538

Get the names of tables created on a specific date

I need to know the names of the tables that were created on a specific date.

I am using SQL Server 2012.

Is there any query I can use?

Upvotes: 2

Views: 66

Answers (1)

Aaron Dietz
Aaron Dietz

Reputation: 10277

One way is to query sys.tables:

SELECT name
FROM sys.tables
WHERE CONVERT(date, create_date) = 'YYYYMMDD'

Create_date is a datetime so you probably want to convert it.

Upvotes: 6

Related Questions