Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT, updatable cursor and last identity value
Message
 
 
À
01/04/2010 16:51:17
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01458392
Message ID:
01458450
Vues:
52
>>>>>>I don't understand how can we use them for the cursor made updatable using technique similar to Vlad's blog. In other words, there is no INSERT command, the changes are done in the cursor, then we do TABLEUPDATE. Then we need to get the ID back. How can we do this?
>>>>>
>>>>>I don't know Vlad's blog. Ask him.
>>>>>Cetin
>>>>
>>>>I should have said FAQ How to make SQL Pass-Through cursor updatable FAQ #8153 Vlad has been here last time in 2005.
>>>
>>>OK I don't have a desire to read the blog. Making a cursor updatable is a simple task and I have samples posted in the past. You can use scopwe_identity() or better yet use GUID as ID which yiu can create and insert before sending to server.
>>>Cetin
>>
>>You're not answering my question. We do know how to make the cursor updatable. However, it is still not clear how using this technique and simple tableupdate can we get the newly inserted ID back.
>
>OK I am sorry I attempted to answer in the first place. I don't know.
>Cetin

Yes, I think there is no reliable way to get the ID back using this technique - that's the problem. Would love to hear otherwise.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform