Solved

Lookup Fields in SQL Server Management Studio

Posted on 2011-03-24
3
589 Views
Last Modified: 2012-05-11
Is there any equivalent in SQL Server Mgmt Studio to the lookup field in MS Access?  With multiple foreign keys to different tables, it would be nice not to have to join tables each time and just be able to see the name assocated to the auto generated ID
0
Comment
Question by:atkinsHOU
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 35210470
no, in Mgt Studio this is not possible.
0
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 250 total points
ID: 35213180
SQL Server does not have the ability to set up a Lookup field like MS Access does. You will have to do this individually in your application.
You can, however, create views that will query the related table structures and show you the actual values corresponding to the keys stored in your table.
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 250 total points
ID: 35214659
What you need is to create a cross-reference table that contains all the "multiple foreign keys".  You will find this approach is far superior as it supports indexing on the columns and will therefore produce good performance on large tables.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question