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
Solved

vb.net Store hashtable in SQL Database Field

Posted on 2010-08-30
2
880 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
spx for moving values to new table 5 74
How to enforce inte 8 59
Incremental load example 2 55
Pivot Query Problem 9 47
There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
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…

837 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