Viewing 7 posts - 1 through 7 (of 7 total)
Thank you. I think I am on the right track now. I wasn't familiar with the OUTER JOIN syntax for MSSQL. Coming from Oracle and Sybase the...
January 8, 2010 at 7:31 am
GilaMonster (9/4/2009)
You could remove both the ROLLBACK and the RETURN and not change the behaviour, nothing'll...
September 4, 2009 at 8:34 am
Bob Hovious (9/4/2009)
1. Get in the habit of first storing @@ROWCOUNT in an integer variable. ( I use @rc. ) Do this...
September 4, 2009 at 7:57 am
Thank you! This seemed to work for me.
ALTER PROCEDURE [dbo].[updateLastName]
(
@userid varchar(7),
@lastname varchar(15)
)
AS
BEGIN TRY
BEGIN TRANSACTION
UPDATE dbo.USER_TBL SET lastname = @lastname WHERE userID = @userid
IF @@ROWCOUNT = 0
BEGIN
ROLLBACK...
September 3, 2009 at 8:37 pm
Thank you very much Gail. I have updated as follows but like you said the UPDATE is not generating an error since no rows were affected? Is there...
September 3, 2009 at 4:22 pm
Thank you and Alexander! Found some logical errors too. I think i've got it now based on your feedback.
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
--...
May 6, 2009 at 1:06 pm
Thank you very much! That was a problem. Here is the entire listing. I am getting the message again once I added the [ELSE] condition. ???
ALTER PROCEDURE [dbo].[sp_qcentricLogin]
(
--...
May 6, 2009 at 9:26 am
Viewing 7 posts - 1 through 7 (of 7 total)