The following query used to work:
select * from information_schema.columns where column_name like ...
But now it's throwing an error:
Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'information_schema.columns'.
The application was upgraded but the view still has to exist in the database.
INFORMATION_SCHEMA provides access to database metadata, information about the MySQL server such as the name of a database or table, the data type of a column, or access privileges. Other terms that are sometimes used for this information are data dictionary and system catalog.
The INFORMATION_SCHEMA. COLUMNS view allows you to get information about all columns for all tables and views within a database. By default it will show you this information for every single table and view that is in the database.
Either:
INFORMATION_SCHEMA.COLUMNS
.(This question was asked by a coworker and didn't seem to be on the site so I asked and answered it.)
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