I have been using following way to save dictionaries into the database:
- Convert the dictionary to XML.
- Pass this XML to a SP(Stored Procedure).
In the SP use:
Select Key1, Value1 into #TempTable FROM OPENXML(@handle, '//ValueSet/Values', 1) WITH ( key1 VARCHAR(MAX), value1 varchar(100) )
Done.
Is there a way to save dictionaries to a database without converting it to XML?