Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting reference back after an insert.
Message
De
04/03/1998 10:58:48
Steve Camsell
Windmill Associates
Bath, Royaume Uni
 
 
À
04/03/1998 10:52:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00082474
Message ID:
00082496
Vues:
38
>The current system I'm working on, using a table with one record on the SQL Server. We have unique Id's across the whole system (therefore no Customers with the same ids as Employees etc..)
>
>We have a stored procedure which returns back the next id. It perofrms the locking and manages conflicts.
>
>You could have one row for each table in your system of course.
>
>Something you might try is having two connections to your database - one for accessing the data ( we use SQLEXEC not views, but you can share all the views on one connection), and one for accessing the next id. That way, if you have any transactions, then the id table won't be locked or rolled back if something goes wrong!
>
>Hope this helps.
>
>Ian
>
Hi Ian,

Thanks very much. I'll have to look into this as I don't know enough about it yet.
Steve Camsell
Development Consultant
Steve.Camsell@Windmill-DBM.Co.Uk
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform