SELECT name from sys.tables where name like ‘YourPrifix%’
Interviews4 answers
Find Tables From DataBase With Same Prefix Name?
4 Answers
Rajeev KumarPosted Jan 3, 2023, 7:37 AM EST
SELECT * FROM sys.objects WHERE type='u' AND name LIKE 'Prefix%'
Code AlonePosted Sep 5, 2018, 3:08 AM EDT
SELECT table_name
FROM sys.tables
WHERE table_name LIKE 'SomePrefix%'
Utsavi BhattPosted May 16, 2018, 4:06 AM EDT
Sometimes You are Confused to find table names with same names prefix.
If there are many tables with name starts from Employee.
1/ EmployeePart1 , 2/ EmployeePart2 , 3/ EmployeePart3 , 4/ EmployeePart4
select * from sys.tables where name like '%Employee%'
O/P:
1/ EmployeePart1
2/ EmployeePart2
3/ EmployeePart3
4/ EmployeePart4
Satyaprakash SamantarayPosted Apr 4, 2017, 2:16 AM EDT


