Solved

Lookup Fields in SQL Server Management Studio

Posted on 2011-03-24
3
535 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

739 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