473,508 Members | 2,454 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Autonumber Replica

Myo
Hi all!

I've replicated my Access DB using briefcase in winXP. All Autonumber
PK changed to random number. They were increment b4. Fortunately i
could recover it through my backup. I just want to know if there's
anyway to replicate the tables without letting the windows to change
my design? Thanks in advance..

Myo
Nov 13 '05 #1
8 1990
No, this is by design, and how Jet replication is documented.
--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies
Windows International Division

This posting is provided "AS IS" with
no warranties, and confers no rights.
"Myo" <mh********@yahoo.co.uk> wrote in message
news:8d*************************@posting.google.co m...
Hi all!

I've replicated my Access DB using briefcase in winXP. All Autonumber
PK changed to random number. They were increment b4. Fortunately i
could recover it through my backup. I just want to know if there's
anyway to replicate the tables without letting the windows to change
my design? Thanks in advance..

Myo

Nov 13 '05 #2
Sorry.. my request was incomplete. Yes.. the design has changed to
random number. I dont want it to change. The records are fine, but when
i tried to add a new record, it starts giving me random numbers. I just
wanted increments.

Thanks 4 ur reply.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3
On 22 Aug 2004 02:23:20 GMT, M Lynn <mh********@yahoo.co.uk> wrote:

If you don't want the design to change to Random, don't use Briefcase
or any other form of replication.
Too bad you care what the values of your autonumbers are. This is a
FAQ: it has been argued here many times (just check with
groups.google.com) that this is a bad idea.

-Tom.
Sorry.. my request was incomplete. Yes.. the design has changed to
random number. I dont want it to change. The records are fine, but when
i tried to add a new record, it starts giving me random numbers. I just
wanted increments.

Thanks 4 ur reply.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 13 '05 #4
M, think about what you are asking for.

You want a replica, so presumably you want to use the database at 2 or more
locations at the same time, and then synchronize. At location A, you want to
be able to add a new record, and get the next number, not a random one. At
location B, you also want a new record to get be given the next available
number, but they must not be given the same number???

There is good reason why replicas cannot use sequential numbering. (And you
can trust anything that michka says about replication.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"M Lynn" <mh********@yahoo.co.uk> wrote in message
news:41**********************@news.newsgroups.ws.. .
Sorry.. my request was incomplete. Yes.. the design has changed to
random number. I dont want it to change. The records are fine, but when
i tried to add a new record, it starts giving me random numbers. I just
wanted increments.

Nov 13 '05 #5

"M Lynn" <mh********@yahoo.co.uk> wrote in message
news:41**********************@news.newsgroups.ws.. .
Sorry.. my request was incomplete. Yes.. the design has changed to
random number. I dont want it to change. The records are fine, but when
i tried to add a new record, it starts giving me random numbers. I just
wanted increments.

Thanks 4 ur reply.

Access Jet Replication was junk from the beginning, and now it is obsolete
junk. Don't use it.
Nov 13 '05 #6
Sorry, you can't have that -- replication does not work that way.
--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies
Windows International Division

This posting is provided "AS IS" with
no warranties, and confers no rights.
"M Lynn" <mh********@yahoo.co.uk> wrote in message
news:41**********************@news.newsgroups.ws.. .
Sorry.. my request was incomplete. Yes.. the design has changed to
random number. I dont want it to change. The records are fine, but when
i tried to add a new record, it starts giving me random numbers. I just
wanted increments.

Thanks 4 ur reply.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #7
Myo wrote:
Hi all!

I've replicated my Access DB using briefcase in winXP. All Autonumber
PK changed to random number. They were increment b4. Fortunately i
could recover it through my backup. I just want to know if there's
anyway to replicate the tables without letting the windows to change
my design? Thanks in advance..


First the golden rule of AutoNumber: The User Doesn't See it!

After observing that rule it's easy to work out that increment or
random, it doesn't matter, computers aren't fussy, as long as it's
unique is all it cares about.

IOW if your number is supposed to mean something to a human, don't use
AutoNumber. If you need an incrementing number you should roll your own
(plenty of examples in the google archive).

Your problem will be from using multiple sites all wanting an
incrementing number, it would be quite slow if a satellite site was t
oconnect to the main site to get the next number so you need another method.

The way I do for multiple warehouse receipt numbers is
WarehouseNo/Increment, if you must have only one series of numbers you
could pool them, IOW when satellite connects to main to replicate you
also then look at the number pool and take say if you expect 10
transactions before next replication take 15 numbers minus the number of
numbers you had left over from last replication.

--

\\\\\\
\\ \\ Windows is searching
\ \ For your sig.
\ \ Please Wait.
\__\

Nov 13 '05 #8
Trevor Best <nospam@localhost> wrote in
news:41***********************@auth.uk.news.easyne t.net:
The way I do for multiple warehouse receipt numbers is
WarehouseNo/Increment, if you must have only one series of numbers
you could pool them, IOW when satellite connects to main to
replicate you also then look at the number pool and take say if
you expect 10 transactions before next replication take 15 numbers
minus the number of numbers you had left over from last
replication.


The easier way to do this in a replicated database is to use a
compound key, one column indicating the replica, and the second the
unique ID in that replica's data set.

Of course, if you really need a human-readable number in sequence,
you're going to have to pre-allocate ranges of numbers to each
replica, as you say.

From my point of view, jet replication has simply been made obsolete
by the ease of use and cheapness of implementing Windows Terminal
Server. The only scenario I can think of where that won't work is
something like laptop users who have to work disconnected in the
field and then connect to the home base to synch. Replication is
still viable there, but I don't see much need for something like
invoice numbers in that scenario, since the folks in the field are
not going to be responsible for billing (work order numbers or
quotation numbers or something like that could easily be uniquely
keyed to the replica or to the user who created them).

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2120
by: John Sims | last post by:
Hello All, Anybody out there know what this error is...I'm getting it while trying to create a partial replica from a full replica made from the design master. "The Partial Replica Wizard has...
0
1408
by: manning_news | last post by:
Using A2K. I've researched this newsgroup and can't find the answer to my question. As we all know, when a database is turned into a Design Master, another database is created called "Replica of...
0
1137
by: manning_news | last post by:
Using A2K. I found a database front-end linked to a back-end which is a Design Master. I was advised in another newsgroup to not use the DM for a back-end; use the replica instead. So, there is...
3
1810
by: Shiva | last post by:
Hi, In my partial replica only the contents of a few tables is being updated / synchronized when I synchronize it with another replica. Is it possible to find out which tables are synchronized?...
4
1505
by: Shiva | last post by:
Hi, I'm trying to get familiar with the concept of replica's, but it still confuses me a bit. Here's my situation: 1) my database application, *.mdb file, should be distributed from time to...
1
2240
by: MAILTONRK | last post by:
Hi, I am a Mainframe guy. I am working with MS access(maintaining a application) for the last 2 weeks. I had one master database and four replicas. One of my replica had trouble in...
3
1822
by: roypython | last post by:
Hello everyone. Your help is very much appreciated. I am trying to create partial replica from the design master. it all goes well until I try to set the filter using: repPartial.Filters.Append...
3
2414
by: roypython | last post by:
Hello everyone. Your help is very much appreciated. I am using MS ACCESS 2003. I am trying to create partial replica from the design master. it all goes well until I try to set the filter using:...
3
5489
by: PaulaCM | last post by:
Okay - so, I made some design changes in my Master Document and when I tried to synch them with the replica it told me that I couldn't (because I made design changes). I can't change the...
0
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7061
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.