Re: GUID default value
- From: "David W. Fenton" <dXXXfenton@xxxxxxxxxxxxxxxx>
- Date: Tue, 08 Nov 2005 15:18:51 -0600
"Vladimir" <chvv@xxxxxxxxx> wrote in
news:1131461215.006761.292900@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
> We are developing a complex system, which will run on Oracle, MS
> SQL Server and MS Access databases. All the databases are to be
> replicated.
>
> We are using a single common database scheme. For each table we
> have a GUID column, which is filled once a new record is
> inserted. We have default values for the GUID column in Oracle DB
> and MS SQL.
>
> Could you please tell me which is the correct column data type
> for GUID
>
> in MS Access and how can we set a default value for the column?
There is only one kind of GUID field in Jet, and that is an
Autonumber GUID (called a "Replication ID").
I don't use Jet DDL since it's not as full-featured as DAO, so I
can't give you the Jet DDL to create an Autonumber field with
Replication ID as the Field Size.
I would point out that you are likely to have massive issues if you
try to use Access to connect to Jet tables with GUIDs in them, as
VBA and Access have major conversion problems with GUIDs, and the
default Access replication conflict resolver can't deal with them.
This iarticle outlines the basic problems:
Replication and GUIDs, the Good, the Bad, and the Ugly
http://trigeminal.com/usenet/usenet011.asp?1033
I have always completely avoided GUIDs in Access because of these
problems.
If, however, you are using pure Jet and not using VBA or Access at
all, the problems are much more manageable (though you're still
going to have to surmount the issues involved with whatever data
access interface you're using, ADO, DAO or ODBC).
--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
.
- Follow-Ups:
- Re: GUID default value
- From: Vladimir
- Re: GUID default value
- References:
- GUID default value
- From: Vladimir
- GUID default value
- Prev by Date: Re: Removing old data from Rep Mgr
- Next by Date: Re: Removing old data from Rep Mgr
- Previous by thread: GUID default value
- Next by thread: Re: GUID default value
- Index(es):
Relevant Pages
|