IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[tolog]') AND type = 'P')
DROP PROCEDURE [dbo].[tolog]
GO
create procedure tolog(@info nvarchar(1000))
as
begin
insert into log(lg_info) values(@info) 
end