Re: Getting FK->PK relationships



Looked at this - it's not worth the effort. Customers on Access we
recomend they switch to Sql Server Express or MySql so we'll just
continue with that.

thanks - dave


On Mon, 16 Feb 2009 09:53:10 GMT, colbertz@xxxxxxxxxxxxxxxxxxxx
(Colbert Zhou [MSFT]) wrote:

Hello Dave,

As far as I know, unlike SQL Server, Access does not support the
INFORMATION_SCHEMA views that return both sides of all FOREIGN KEY
relationships, as well as the name of the foreign key constraint.

As a result, I think, at least based on my research, we cannot write a SQL
statement which can retrieve the scheme information from Access database.
But some researches in the Internet show that we can use the ADOX to
achieve this objective. ADOX is the object model of Microsoft Office Acces.
We can view, create, and modify the structure of Access databases by using
ADOX objects, methods, and properties.

Please read the document to know how to list all tables in the Access
DataBase using ADOX,
http://msdn.microsoft.com/en-us/library/aa165325(office.10).aspx

And read the codes in the following link to know how to find all the
foreign keys in a table using ADOX,
http://sqlserver2000.databases.aspfaq.com/schema-how-do-i-find-all-the-forei
gn-keys-in-a-database.html

I do not go into researches for the FireBird and Progress because they are
not supported from Microsoft. Thanks for your understanding. Hope my links
help for your scenario. And If you have any questions or concerns, please
feel free to let me know. Have a nice day, Dave!


Best regards,
Colbert Zhou (colbertz @online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx


david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
.



Relevant Pages

  • RE: Non initialized Cmd Parameter Collection via ASP vs SQL Server
    ... component to access database and execute some stored procedure. ... error when change the database from SQL server 2000 to SQL Server 2005, ... Microsoft MSDN Online Support Lead ... Delighting our customers is our #1 priority. ...
    (microsoft.public.data.ado)
  • Re: bug in ADOX.catalog with SQL Server 7.0 ?
    ... Actually ADOX was designed for using with Access and does not support ... which is not supported in ADOX when you work with SQL Server. ... > conn = open_connection ...
    (microsoft.public.data.ado)
  • RE: Non initialized Cmd Parameter Collection via ASP vs SQL Server 200
    ... component to access database and execute some stored procedure. ... error when change the database from SQL server 2000 to SQL Server 2005, ... Microsoft MSDN Online Support Lead ... Delighting our customers is our #1 priority. ...
    (microsoft.public.data.ado)
  • RE: Getting FK->PK relationships
    ... As far as I know, unlike SQL Server, Access does not support the ... INFORMATION_SCHEMA views that return both sides of all FOREIGN KEY ... ADOX is the object model of Microsoft Office Acces. ... Microsoft Online Community Support ...
    (microsoft.public.data.odbc)
  • Re: Best database(different from the usual "profile")
    ... > The other issue is price and support. ... then you will get a lot of support hassle. ... > customers with a support dept you can give them the SQL Server option. ...
    (borland.public.delphi.thirdpartytools.general)