dbTalk Databases Forums  

Read PK from MS Access Metadata

comp.databases.ms-access comp.databases.ms-access


Discuss Read PK from MS Access Metadata in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
thijs.kupers@gmail.com
 
Posts: n/a

Default Read PK from MS Access Metadata - 12-17-2004 , 08:42 AM






Hey,

when I open an ado-connection from a dsn that is linked to an MS Access
database and I use the openSchema method (adSchemaPrimaryKeys), I've
got the following error (-2146825037):"
Exception occured in ADODB.Connection, Object or provider is not
capable of performing requested operation.. Help Path is
C:\WINNT\HELP\ADO270.CHM and context 1240648

The strange thing is, that when I open the connection on the udl way
(Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\database.mdb), I can
read the schema without any problems

How can I open read the primary key's from an Access database, with a
dsn-connection (are there some sys-tables like sql-server or
information_schema where I can query from?)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.