Re: Returning Value to Web App via Stored Procedure
- From: "Hari Prasad" <hari_prasad_k@xxxxxxxxxxx>
- Date: Wed, 14 Feb 2007 08:01:58 -0600
Hello,
A small suggestion. Please create the user defined stored procedures with a
name other thyan SP. SQL Server witll treat the SP's start with name SP as
system proc and scan system database.
So try to use a name like USP_.
Regarding the procedure, I am sure that inncrement will happen by 1 based on
the below logic.
Thanks
Hari
"IronSights" <IronSights@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C426E7D0-49E7-44D5-AE97-DE426106D95B@xxxxxxxxxxxxxxxx
I am trying to run an update stored procedure that will add 1 revision to
the
rev field and return the Value back to my Application. My number is
incrementing by 2 and not 1.
Here is my Stored Procedure
CREATE PROCEDURE dbo.sp_Update_file
@kbid big,
@filename nvarchar(50),
@rev big OUTPUT,
@moddate datetime,
@owner nvarchar(50),
@author nvarchar(50)
As
UPDATE KBFile
SET
rev = rev + 1,
filename = @filename,
moddate = @moddate,
owner = @owner,
author = @author,
@rev = (Select rev from kbfile where kbid = @kbid)
WHERE kbid = @kbID
GO
.
- Follow-Ups:
- Re: Returning Value to Web App via Stored Procedure
- From: IronSights
- Re: Returning Value to Web App via Stored Procedure
- Prev by Date: attn: pearline - really emotional postings - ujgu - (1/1)
- Next by Date: Re: Returning Value to Web App via Stored Procedure
- Previous by thread: attn: pearline - really emotional postings - ujgu - (1/1)
- Next by thread: Re: Returning Value to Web App via Stored Procedure
- Index(es):
Relevant Pages
|
|