Question

I just created a table within a huge database and saved it. I've tried to refresh the database to see if my new table appears and I closed & reopened the Management Studio but don't see my new table. I was wondering if there is a way to search for my new created table? I'm using SQL Server 2005. Thanks a lot.

Was it helpful?

Solution 2

You can try this:-

 SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[table_name_here]')

or try this:-

 USE YourDBName
 GO 
 SELECT *
 FROM sys.Tables
 where name like '%tablename%'
 GO

OTHER TIPS

 Select * from sys.tables where name like '%tablename%'

If table doesn't appear, check under different schema.

select * from sys.all_objects where name like '%tableName%' and type = 'U'

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top