I have a requirement where I would like to store the key value pairs or hashtable in my SQL Server table as a column.
Can I store a hash table as a column in SQL Server 2008 R2?
Please suggest some alternative if not possible.
Thanks
Prabhanjan
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can store pretty much anything in a binary field if you want to, including a serialized hashtable object.
But this doesn’t sound like a good idea. Why not create a separate table with two columns for the keys and values, respectively?