Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-12-02
1
Medium Priority
?
507 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 2000 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

Basic Security of Your VPC

So, you’ve got this shiny new VPC and a fancy new application configured on your EC2 servers ready to go. This application is only accessible from your computer, which is great for security, but you need your users to be able to access it! So, what’s the easiest way to do this?

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

722 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