Can you use a parameter in a stored procedure to select a table? e.g.,
create procedure pStandEditErrorCheck @standedit char(6)
as
--Check for Duplicate Standids
SELECT standid, count(*) AS Total_Duplicate_Standids
FROM @standedit--stand_edits
GROUP BY standid
HAVING count(*) > 1
return
create procedure pStandEditErrorCheck @standedit char(6)
as
--Check for Duplicate Standids
SELECT standid, count(*) AS Total_Duplicate_Standids
FROM @standedit--stand_edits
GROUP BY standid
HAVING count(*) > 1
return