Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Next Number generator
Message
From
23/07/2001 12:12:22
 
 
To
23/07/2001 12:07:26
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00533898
Message ID:
00533981
Views:
28
Hi!

Well, you can make an output parameter for SP and use it to return the new ID number. However, what is bad with the cursor? The speed here is the same.

>Thanks Vlad !
>
>I knew this solution, but I imagined there was a solution where the returned parameters didn't had to be passed through a cursor ... but this seems to be the only way.
>
>
>>Hi!
>>
>>>>Return the ID value from there as you need, you can use also RETURN that is better for use in the SP.
>>>
>>>My quesion to this remark is, can read this parameter in Visual foxpro, and if yes, how ?
>>
>>When last statement is SELECT ... as nID:
>>
>>=SQLEXEC(nConnectHandle,"EXEC MyNewID 'MyTableName'",'IdResult')
>>? IdResult.nID
>>
>>HTH.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform