Re: Trouble using ADOX to create linked tables in jet database fro
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Mon, 11 Jun 2007 14:05:10 -0400
sudhi wrote:
Initially I used MS-Access to create the link tables.
While doing so MS-Access displays the colums in the source table and
asks me to choose a column (or more than one colum) in the source
table as primary key.If I indicate the colum(s) as primary key
MS-Access creates a link table that I can read from and write to.
Yes, that is yet another capability that does not seem to have been
implemented in ADOX (it's not the only functionality that is lacking).
If it's there, I can't find it.
On
the other hand if i did'nt choose a colum then it creates a readonly
link table.I was hoping that if I can add a primary key to the linked
table
programatically then i will create a table that is both readable and
writable.Because I am not able to add this primary key a I get
readonly table. I am wondering how MS-Access is able to add primary
key while I can't do it with ADOX ?
Because ADOX was an afterthought. It was never intended to be a
substitute for Access. MS wanted to deprecate DAO but needed to provide
at least some of the functionality provided by DAO. ADOX was the result.
Frankly, I'm not even sure DAO provided that particular functionality. A
quick browse through the DAO documentation failed to reveal it.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
.
- References:
- Trouble using ADOX to create linked tables in jet database from an
- From: sudhi
- Re: Trouble using ADOX to create linked tables in jet database from an
- From: Bob Barrows [MVP]
- Re: Trouble using ADOX to create linked tables in jet database fro
- From: sudhi
- Re: Trouble using ADOX to create linked tables in jet database fro
- From: Bob Barrows [MVP]
- Trouble using ADOX to create linked tables in jet database from an
- Prev by Date: Re: Error -2147217833
- Next by Date: Re: Retrieve one row of data
- Previous by thread: Re: Trouble using ADOX to create linked tables in jet database fro
- Next by thread: Trouble with ADO
- Index(es):
Relevant Pages
|
|