Reputation: 152
i'am getting error on '{' and 'END'
CREATE PROCEDURE getLogsdata
{
@id int
}
AS
BEGIN
END
how to remove this errors
Upvotes: 0
Views: 22
Reputation: 38023
Use parenthesis ()
instead of curly braces {}
, and include some code in your procedure.
create procedure dbo.getLogsdata (@id int) as
begin;
set nocount on;
select *
from dbo.logs
where id = @id;
end;
go
Upvotes: 1