c# - How can I add 2 autonumber columns in MS Access -


i coding webpage asp .net c#

i need add 2 autonumber fields in ms access don't let me it. did this:

field size = replication id sequential= yes, without replication 

but column (it calls unique_id) had value ={bbeb19c8-9c6d-4a1d-b966-a409a849d417}. result, want add second autonumber field ms access database. how can this?

a "replication id" guid. has in order form of replication work.

also, can't have 2 auto number columns in same table. it's kind of pointless.

just give idea on why there's no reason this, consider following hypothetical table definition.

cars
id: autonumber
otherid: autonumber
name: varchar(100)

if insert record name value of "ford" you'll have record looks like:
1, 1, ford

when insert second record, chevy, like:
2, 2, chevy

note how both id fields have same value?

now, let's modified table definition seed "otherid" starting @ value 100. doing same inserts yield:

1, 101, ford
2, 102, chevy

the second field takes space while providing nothing in return because column can computed adding 100 id key.

i'm guessing missing fundamental here. if provide details on trying accomplish , why think need 2 auto number fields i'm pretty community can point in right direction.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -