Click here to Skip to main content
15,892,072 members
Home / Discussions / Database
   

Database

 
AnswerRe: Calculate and display a progressive balance Pin
smcnulty200014-Jul-11 22:34
smcnulty200014-Jul-11 22:34 
GeneralRe: Calculate and display a progressive balance Pin
Rameez Raja16-Jul-11 22:49
Rameez Raja16-Jul-11 22:49 
GeneralRe: Calculate and display a progressive balance Pin
smcnulty200018-Jul-11 13:36
smcnulty200018-Jul-11 13:36 
QuestionSelecting multiple columns from several tables without using JOIN Pin
Dominick Marciano11-Jul-11 4:41
professionalDominick Marciano11-Jul-11 4:41 
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
Blue_Boy11-Jul-11 4:55
Blue_Boy11-Jul-11 4:55 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
David Mujica11-Jul-11 5:28
David Mujica11-Jul-11 5:28 
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
kmoorevs11-Jul-11 10:08
kmoorevs11-Jul-11 10:08 
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
Shameel11-Jul-11 21:30
professionalShameel11-Jul-11 21:30 
Using UNION ALL as suggested by some folks would not be an optimal solution, because the time taken to access the tables would remain the same, you would just end up saving the time to open and close additional connections (which ASP.NET saves you anyway through connection pooling).

Since the Instructors and Courses do not change often, you can use the System.Web.Caching.Cache class to load the data from the database in the event and bind the controls from the Cache. There are mechanisms in SQL Server to hook on to Table change notifications and invalidate the Cache. So anytime the data in the base tables change, your Cache gets invalidated and the fresh data is loaded.

Here's an example on how to use the Cache and SqlCacheDependency classes: http://davidhayden.com/blog/dave/archive/2006/04/29/2929.aspx[^]
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
David Skelly12-Jul-11 3:54
David Skelly12-Jul-11 3:54 
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
AnnieMacD14-Jul-11 6:24
AnnieMacD14-Jul-11 6:24 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
Shameel14-Jul-11 18:52
professionalShameel14-Jul-11 18:52 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
smcnulty200014-Jul-11 22:46
smcnulty200014-Jul-11 22:46 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
Shameel15-Jul-11 2:22
professionalShameel15-Jul-11 2:22 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
AnnieMacD15-Jul-11 2:45
AnnieMacD15-Jul-11 2:45 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
Shameel15-Jul-11 7:50
professionalShameel15-Jul-11 7:50 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
AnnieMacD15-Jul-11 7:56
AnnieMacD15-Jul-11 7:56 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
smcnulty200015-Jul-11 5:39
smcnulty200015-Jul-11 5:39 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
Shameel15-Jul-11 7:48
professionalShameel15-Jul-11 7:48 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
smcnulty200015-Jul-11 8:08
smcnulty200015-Jul-11 8:08 
GeneralRe: Selecting multiple columns from several tables without using JOIN Pin
AnnieMacD15-Jul-11 2:44
AnnieMacD15-Jul-11 2:44 
AnswerRe: Selecting multiple columns from several tables without using JOIN Pin
smcnulty200014-Jul-11 23:20
smcnulty200014-Jul-11 23:20 
QuestionTemp and variable table cannot be created. Pin
Groulien10-Jul-11 22:27
Groulien10-Jul-11 22:27 
AnswerRe: Temp and variable table cannot be created. Pin
Shameel11-Jul-11 1:42
professionalShameel11-Jul-11 1:42 
AnswerRe: Temp and variable table cannot be created. Pin
DaveAuld11-Jul-11 2:57
professionalDaveAuld11-Jul-11 2:57 
AnswerRe: Temp and variable table cannot be created. Pin
Corporal Agarn11-Jul-11 6:00
professionalCorporal Agarn11-Jul-11 6:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.