Solved

Lookup Fields in SQL Server Management Studio

Posted on 2011-03-24
3
457 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
3 Comments
 
LVL 142

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
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…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

706 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now