Hi
im trying to return the count in this stored procedure but i keep an "incorrect syntax near the keyword AS"
what am i missing ?
CREATE PROCEDURE dbo.Upload_validate_token_
existance_
select
@guid uniqueidentifier = null,
AS
Set nocount on
if not @guid is null
begin
SELECT COUNT (*)FROM uploadRekvisitioner WHERE guid = @guid
end
return
GO
thanks
Start Free Trial