Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

832 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