In my database I have created some tables whose name contains '_' character in middle, I want to find those all tables.
for example:
Doc_Amit,Doc_Raj,chem_Man etc
I know the query for finding table name as below:
select * from sys.tables where name like '%%'
but my question is what should i write between % and % so that I only get table names which contains wild card character '_' ??
Note : I am using SQL Server 2012