Suppose I have two tables:
CREATE TABLE Customers
(
Id BIGINT IDENTITY(1,1) PRIMARY KEY,
FullName varchar(100) NOT NULL,
);
CREATE TABLE Employees
(
Id BIGINT IDENTITY(1,1) PRIMARY KEY,
FullName varchar(100) NOT NULL,
);
If I have used the FullName column of the Customers table in any stored procedure, then I want to get all those stored procedure names by searching with ColumnName = 'FullName' and TableName = 'Customers'.
I don't need those stored procedure names where I have used the FullName column from the Employees table.
Is it possible to write a script for this in SQL Server?
NB: In my search criteria I want to search with column name and Table name.