There is a command in SqlServer sp_help ‘table_name’ (table_name or other stuff)
Is there a possibility to use it when you don’t know the whole table name, with wildcards or something like this:
sp_help admin_%
EDIT:
Run sp_help (SELECT * FROM INFORMATION_SCHEMA.Tables WHERE TABLE_NAME like '%admin_%') but had a strange result…
No,
SP_HELPrequires a complete name, so use this to find the table name first:then you can use
sp_help 'the_real_complete_name'EDIT based on OP’s comment
You don’t need to remember the query, just create a procedure to search for object names:
now just use it like:
or
to find all of the objects with a matching name. These are the types of objects that can be found:
This is off the main topic, but you can also search for any text within a stored procedure, trigger, view, or function using this:
just use it like:
or