Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Implementing Most Recently Used Lookups

By William Talada,

How many times have you had to scroll through 267 country names to get to the "United States" in a list box? We constantly force our users to do unnecessary work when it would be a breeze for us to implement adaptive lists ordered by most commonly selected foreign key values or by most recently selected foreign key values.

Copy the attached script into a query window and play with it if you want to get a feel for how easy it is to implement this feature.

Total article views: 825 | Views in the last 30 days: 1
 
Tags
foreign keys (fk)    
lookups    
t-sql    
 
Contribute