Skip to content

Instantly share code, notes, and snippets.

@mikaelweave
Created March 19, 2015 23:03
Show Gist options
  • Save mikaelweave/4da27d4ff7f3e4cbd73a to your computer and use it in GitHub Desktop.
Save mikaelweave/4da27d4ff7f3e4cbd73a to your computer and use it in GitHub Desktop.
Scan all SQL tables in a database by name
SELECT
name
FROM
ices.sys.tables
WHERE
name LIKE '%Line%'
AND is_ms_shipped = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment