Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 7th, 2004, 03:01 AM
Timo Timo is offline
Timo
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Perth, Australia
Posts: 106 Timo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 22 sec
Reputation Power: 5
Question getting a list of foreign keys

Hi,

Im currently trying to generate my add screens in a ASP.NET application. To do so I would like to make selectboxes for the foreign keys. to do so I need a query(or any other sollution) to get a list with all the foreign keys for every table.

There should be system tables to get this from, I just don't know where to select it from.

Could any1 help me out here?

Thank in advance,
Timo

Reply With Quote
  #2  
Old October 7th, 2004, 03:09 AM
Timo Timo is offline
Timo
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Perth, Australia
Posts: 106 Timo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 22 sec
Reputation Power: 5
The systable with the foreign keys is sysforeignkeys. It only contains ID's with which i've got no idea what to do with.

any1 got any idea?

cheers,
Timo

Reply With Quote
  #3  
Old October 7th, 2004, 09:21 PM
Timo Timo is offline
Timo
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Perth, Australia
Posts: 106 Timo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 22 sec
Reputation Power: 5
Does nobody have the awnser to my question or does it sound vague? If you need more info, please don't hesitate to ask. I've been trying to find out where to get the foreign keys list from, but had no luck so far.

Thanks in advance,
Timo

p.s.
Please excuse my english every once in a while. English is not my first language.

Reply With Quote
  #4  
Old October 13th, 2004, 02:32 AM
Timo Timo is offline
Timo
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Perth, Australia
Posts: 106 Timo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 2 m 22 sec
Reputation Power: 5
Thumbs up Sollution

If you find this and you have the same problem:

I got a reply with a working sollution in the sql section of this forum.

cheers,
Timo

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > getting a list of foreign keys


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT