How to define an autonumber field with a field size of Replication ID?

L

Laser Lu

Can anybody tell how to define an autonumber field or column of a table in
Access using Jet SQL? It is necessary to use SQL and the field size should
be set to Replication ID (GUID in Access, 16 bytes).
 
D

Douglas J. Steele

When you've got the table open in Design mode, select the Autonumber field.
In the information at the bottom, set the Field Size to Replication ID.

However, you may want to read what Michka's got at
http://www.trigeminal.com/usenet/usenet011.asp about why GUIDs aren't a good
choice for Primary Keys in Access.
 
L

Laser Lu

Thank you, Doug, for pointing out how to do this setting in Access Design
view.
However, actually, I've known this operation, and my problem is how to
define it just using SQL.
Thanks again for your reply! And, I'll check out Michka's article.
 
D

Douglas J. Steele

I doubt very much that it's possible to do using SQL. Since SQL is a generic
interface, it doesn't necessarily support DBMS-specific things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top