how to get table name in sql server code example Example: sql server find table name select * from sys.tables where name like '%tablename%'