LTER PROCEDURE [dbo].[Delete_key]
-- Add the parameters for the stored procedure here
(
@Key_number nvarchar (10)
)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
Update keys
Set active=(select case when active = 1 then 0 else 1 end
from keys where keynumber=(@key_number))
where keynumber=(@key_number)
end
|