Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Offline views and indexes
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Offline views and indexes
Miscellaneous
Thread ID:
00682114
Message ID:
00682114
Views:
50
I'm accessing a SQL back end from ASP on the web side and Offline Views on the client side. Things are pretty straightforward for me because most tables will be updated from VFP only - Except for my 'registrants' table, where people register on-line.

For this table, we'll be adding registrants in off-line mode at the same time that others are registering themselves on the web - so records will be added in both places.

The previous web developer used a SQL Identity field as a PK in this table.

I thought I'd be able to query the table each time we connect to figure out the next PK, then incriment my new local PK's to match (using a local PK table to figure out where the new ones start), then synchronize - but it seems like the @@IDENTITY function doesn't return anything until you attempt to save a record.

How do others deal with PK generation when records are added from both sides?

TIA
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Next
Reply
Map
View

Click here to load this message in the networking platform