Solved

vb.net Store hashtable in SQL Database Field

Posted on 2010-08-30
2
882 Views
Last Modified: 2012-05-10
I am trying to figure out how to store a hashtable in a MS Sql Server tables field.  I do not want to create a file in the process,  I simply want to store the hashtble in a field of the sql server table.
0
Comment
Question by:Sitewizard
[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
2 Comments
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 500 total points
ID: 33568732
Are you looking to store the hashtable in a database with each pair as a row (key in one column, value in another), or in a single cell (serializing the hash table and storing it in one place)? I don't believe there's any way to store it as a set of pairs without iterating over the table and dealing with each key/value pair (maybe an ORM like NHibernate could do it, but I don't suspect it could), but to serialize it to the database, you can use the code at the following link:

http://blogs.techrepublic.com.com/howdoi/?p=143
0
 

Author Comment

by:Sitewizard
ID: 33569215
I was looking to serialize the hashtable and store it in on binary field in the sql server.  i will have a look at the link you prvided.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

737 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