Newsgroups: microsoft.public.inetserver.asp.general
From: "Bob Barrows" <reb01...@NOyahoo.SPAMcom>
Date: Sat, 11 Oct 2003 11:35:36 -0400
Local: Sat, Oct 11 2003 11:35 am
Subject: Re: ASP / Stored Procedure SQL Insert Help
Bill Kellaway wrote: Close. The Return parameter contains the value returned by a RETURN > Thanks Bob, > I'm not sure what the Return Parameter does. I'll take a guess statement in your SP. If you do not have a RETURN statement, a successful procedure will return 0, while a procedure that raises an error will return NULL. There are 3 ways to return values from a SQL Server stored procedure: 2. a Return parameter: 3. an Output Parameter: I do not recommend method 1 for returning a single value. A resultset is Most developers use the Return parameter to return status codes instead of > If so, Very strange. Did you have a unique index to prevent duplicate inserts? > this would be very helpful to me. The reason that I changed this > page from ADO to a SP Insert was that I was getting intermittant > duplicate inserts. Rebooting SQL seemed to help for awhile. > Might I be able to use a return parameter to prevent duplicate Yes, but you don't have to. You can use EXISTS in your stored procedure to > inserts from the ASP page ??? do this without raising an error: IF NOT EXISTS HTH, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||