Answers for "stored procedures in sql server"

SQL
1

find column in all stored procedures sql server

-- Search column in All Objects
SELECT OBJECT_NAME(OBJECT_ID),
definition
FROM sys.sql_modules
WHERE definition LIKE '%' + 'BusinessEntityID' + '%'
GO
Posted by: Guest on May-12-2020
7

sql server stored procedure

CREATE PROCEDURE spGetEmployeeCountByGender
@Gender nvarchar(20),
@EmployeeCount int Output
AS
BEGIN
SELECT @EmployeeCount = COUNT(Id) 
FROM tblEmployee 
WHERE Gender = @Gender
END
Posted by: Guest on February-17-2021

Code answers related to "stored procedures in sql server"

Code answers related to "SQL"

Browse Popular Code Answers by Language