Groups | Blog | Home
all groups > inetserver asp db > november 2004 >

inetserver asp db : About OpenSchema(27) and rstSchema("FK_COLUMN_NAME")



Irena
11/25/2004 12:52:58 PM
Hi all there,

I have developed an ASP script that is able to read the structure of an
Ms Access database ( via object objConn.OpenSchema(27) ) and to
identify the foreign Keys columns and tables (via
rstSchema("FK_COLUMN_NAME") and rstSchema("FK_TABLE_NAME")).

I wonder whether there is a way to read the displayed field name of the
foreign key too.

So to say, for example, in Access, I have a table books. A field of
this table is a "lookup table" type that looks into the foreign Key
FKAuthor of Authors table and displays the field AuthorName.

I wonder if there is a programmatically way in ASP to discover/know
that Authorname is the displayed field of the
rstSchema("FK_COLUMN_NAME").
I hope that this is clear enough.

Thanks.
Irena
Irena
11/25/2004 9:38:37 PM

[quoted text, click to view]
Where is?

I visited your site but had no luck in finding an article on the
subject.

Can u specify the article?

thnks.
Irena
Aaron [SQL Server MVP]
11/25/2004 10:27:45 PM
Here's a much simpler method, if you're interested.

--
http://www.aspfaq.com/
(Reverse address to reply.)




[quoted text, click to view]

Aaron [SQL Server MVP]
11/26/2004 1:16:08 AM
Sorry, I hit Ctrl+V but my clipboard must have been emptied somehow...
http://www.aspfaq.com/2520

--
http://www.aspfaq.com/
(Reverse address to reply.)




[quoted text, click to view]

Irena
11/26/2004 1:49:22 AM

[quoted text, click to view]
Whow! Aaron, you have changed me life with a link! :-)

Thanks.
Irena
AddThis Social Bookmark Button