-
Re: ASP Problem retrieving new identity from Stored Procedure
Hello,
thank you. but i think i was a bit unclear. in my asp script i use the
following:
call stored procedure from SQL( that's ok, it returns the identity val)
mycommand.Parameters.Append mycommand.CreateParameter ("@TmpV",adInteger,adParamReturnValue)
....
mycommand.Execute
i want to know what is the method or property i need to use to get the identity
value from the stored procedure.
for example: mycommand.parameters...
suggestions?
regards,
Gia
"John Knoop" <john.k@home.se> wrote:
>This would be the SQL Statement:
>
>SET NOCOUNT ON;
>INSERT INTO () VALUES ();
>SELECT @@Identity AS LastID;
>SET NOCOUNT OFF;
>
>"Gia" <grjorge_me@yahoo.com> wrote in message
>news:3b30db8d$1@news.devx.com...
>>
>> hello,
>> in my asp script, i'm using a stored procedure to insert new records.
>> This procedure in turn will return the identity. I would like to know
>how
>> i can call that value from my asp Script. Suggestions? examples are
>welcomed.
>>
>> regards,
>> Giovanna
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks