Hi,
I have a (relatively) simple stored procedure that I'm executing from a Java class.
All the params are going into the procedure call correctly but no record is added. When I go to Enterprise Mgr and run the procedure call, I get the "1 row affected" message, but no new record is added to my tables.
Any help would be greatly appreciated!
-mD
I have a (relatively) simple stored procedure that I'm executing from a Java class.
Code:
CREATE PROCEDURE [dbo].[AddNewUser]
@NewContrID int,
@Name varchar(100),
@Addr varchar(200),
@City varchar(200),
@St varchar(20),
@Zip varchar(50),
@NewUserID int,
@UserName varchar(25),
@Pwd varchar(25),
@Email varchar(50),
@AccessLevel bit,
@Co varchar(200)
AS
SET @NewContrID = (SELECT (MAX(CONTRACTOR_ID) + 1) AS NewValue FROM dbo.CONTRACTORS)
SET @NewUserID = (SELECT (MAX(USER_ID) + 1) AS NewValue FROM dbo.SYSUSERS)
RETURN @NewContrID
RETURN @NewUserID
INSERT INTO dbo.CONTRACTORS VALUES(@NewContrID, @Name, @Addr, @City, @St, @Zip, NULL)
INSERT INTO dbo.SYSUSERS VALUES(@NewUserID, @UserName, @Name, @Pwd, @Email, @AccessLevel, 0, 0, @Co, @NewContrID)
GO
All the params are going into the procedure call correctly but no record is added. When I go to Enterprise Mgr and run the procedure call, I get the "1 row affected" message, but no new record is added to my tables.
Any help would be greatly appreciated!
-mD