Hi all,
I am having problems with an sql2000 database update stored procedure. I create the connection, command, and parameter objects and use the dbcmd.executenonquery method. It returns a 1 for one records effect as it should but it never updates the record. Here is my stored procedure could anyone tell me why it's returning 1 rows effect and the data isn't being updated?
CREATE PROCEDURE dbo.UpdateMyAccountInfo
@emailaddress as varchar(50),
@firstname as varchar(15),
@lastname as varchar(25),
@gender as char(1),
@ethnicity as char(1),
@age as varchar(2),
@city as varchar(20),
@state as varchar(2),
@zipcode as varchar(5)
AS
Update tblUsersInfo
SET usersfirstname = @firstname,
userslastname = @lastname,
usersgender = @gender,
usersethnicity = @ethnicity,
usersage = @age,
userscity = @city,
usersstate = @state,
userszipcode = @zipcode
Where usersemailaddress =@emailaddress
GO
Any help at all would be great. Thanks all! Errol Barratt
work: 856-810-5712
home: 856-697-1593
*** If there is a possibility, I'm sure all the smart ones out there will enlighten me 8p
I am having problems with an sql2000 database update stored procedure. I create the connection, command, and parameter objects and use the dbcmd.executenonquery method. It returns a 1 for one records effect as it should but it never updates the record. Here is my stored procedure could anyone tell me why it's returning 1 rows effect and the data isn't being updated?
CREATE PROCEDURE dbo.UpdateMyAccountInfo
@emailaddress as varchar(50),
@firstname as varchar(15),
@lastname as varchar(25),
@gender as char(1),
@ethnicity as char(1),
@age as varchar(2),
@city as varchar(20),
@state as varchar(2),
@zipcode as varchar(5)
AS
Update tblUsersInfo
SET usersfirstname = @firstname,
userslastname = @lastname,
usersgender = @gender,
usersethnicity = @ethnicity,
usersage = @age,
userscity = @city,
usersstate = @state,
userszipcode = @zipcode
Where usersemailaddress =@emailaddress
GO
Any help at all would be great. Thanks all! Errol Barratt
work: 856-810-5712
home: 856-697-1593
*** If there is a possibility, I'm sure all the smart ones out there will enlighten me 8p