Hi
I created this stored procedure in SQL Express on my local machine and I am trying to create it on my isp server.
But gives me the follow error
Line 4: Incorrect syntax near 'GO'.
My stored procedure is below
Any help please
Its 1and1 as the host by the way
I created this stored procedure in SQL Express on my local machine and I am trying to create it on my isp server.
But gives me the follow error
Line 4: Incorrect syntax near 'GO'.
My stored procedure is below
Any help please
Its 1and1 as the host by the way
Code:
CREATE PROCEDURE [PROCEDURE NAME] AS
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER Procedure [dbo].[DBAuthenticate]
(
@AccountNumber Int,
@Password nchar(10)
)
As
DECLARE @ID INT
DECLARE @actualPassword nchar(10)
SELECT
@ID = AccountNumber,
@actualPassword = Password
FROM dbo.Clients
WHERE AccountNumber = @AccountNumber
IF @ID IS NOT NULL
IF @Password = @actualPassword
RETURN @ID
ELSE
RETURN - 2
ELSE
RETURN - 1