Solved

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

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now