Solved

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

Posted on 2013-12-02
1
502 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
[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
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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

635 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