I'm dealing with legacy database.
For example, I have table CarTable
with definition like this.
CREATE TABLE [dbo].[CarTable] (
[CarID] BIGINT IDENTITY (1, 1) NOT NULL,
[Name] VARCHAR (MAX) NOT NULL,
[Status] INT NULL,
[CarStatus] INT NULL,
);
I want to automatically check if any stored procedure or view references column Status
. Is it possible?
There are many columns named Status
in database and trivial approaches like generating database schema dump and greping won't work.