Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting reference back after an insert.
Message
From
04/03/1998 10:58:48
Steve Camsell
Windmill Associates
Bath, United Kingdom
 
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00082474
Message ID:
00082496
Views:
34
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform