I am having problems running sql server stored procedure. I using a dynamic sql. I get the error \"Must declare the scalar variable \"@EmployeeId\".
SQL QUERY
The second sp_executesql parameter should be a single string with all parameter definitions. Try:
EXECUTE sp_executesql @queryString, N'@AdminId int, @EmployeeId int', @AdminId = @AdminId, @EmployeeId = @EmployeeId;