Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBC or free table
Message
From
24/07/1999 05:37:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00245602
Message ID:
00245695
Views:
11
>I have a question for anyone with experience might be able to help. I am trying to design this system that allow user to receive a schedule table that the user need perform for next 2 weeks This table is loaded to laptop and used as schedule table. This record will be marked as done each time the user finish tasks. Then this table would be uploaded to office system and be processed accodingly. Updating dates and information is stored in the respective tables So this schedule table be going back and force.
>
>A new record would be added in the laptop as an ad hoc task too.
>This could be system generated surrogate key but. I could receive
>a schedule file with surrogate key last number 100
>The next woker could be receiving 110. Then I could add new record
>in my laptop and reach 110 number. From the 110 up my surrogate
>key has duplicate numbers as the next worker receved.
>
> Should I have surrogate key for this table? But if so
>how I am going to deal with duplicating key situation.
>I feel I need to take another approach for this case.
>But poor me for the moment I have no good idear.
>
>I am sure people out there must have faced with such
>prediicaments before me.
>
>What is the best solution for this kind of case. Sorry to describe such a situation to you all.
>Any suggestion is welcome.
>
>Aiko in DC

Consider of using offline.
For surrogate keys use a char one that is never possible to duplicate between disconected sites. ie: each site could have a one char unique code preset. So you could have a surrogate key as stuff(sys(2015),1,1,SiteChar). Yes this is 10 chars field. But I don't think anybody is suffering with space saving for 9 chars per record anymore and I use it effectively w/op any perfomance loss (at least I don't notice).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform