How do I select all the tables name with a particular name in the database?
Either sysobjects
(where type='u'
), or (more correctly) the info-schemas:
SELECT *
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME LIKE '%CUSTOMER%' -- or "='CUSTOMER'" for exact
If you meant something different, please clarify.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With