Solved

in-memory datatable --> c# asp.net MVC4

Posted on 2013-12-02
1
494 Views
Last Modified: 2013-12-27
Does anyone have good examples / articles on "in-memory datatables" for MS SQL 2005 ?

Below is what I want.
  ** 2am DAILY = system runs "Select PartNo from Products" statement and keeps 50,000+ records in memory for easy "AUTO_LOOKUP" via c# asp.net MVC4 textbox
  ** next day at 2am = system runs "Select...." again, refreshing anything that changed
0
Comment
Question by:finance_teacher
1 Comment
 
LVL 23

Accepted Solution

by:
Christopher Kile earned 500 total points
ID: 39715370
I use table variables all the time, but they do not persist beyond the life of the procedure in which I declare them, which would make them useless for your purpose.

TThis article is one of many that debunks the myth that table variables are purely memory tables.   However, a global temporary table would work as long as you made all your calls to the GTT within one session, as that is the scope of a global temporary table.

For an actual in-memory table, you''d have to build a C# assembly with special functions that built a structure in memory and returned the appropriate recordset when a request is sent to it.  If you're interested, I might be able to help with that.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 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