Click to See Complete Forum and Search --> : Store System.Array in SQL ???


duongthaiha
April 9th, 2007, 10:47 PM
Hi

I am having a object System.Array and i want to store in SQL database.The object will be array of byte, but in SQL server doesn't have anytype to store that. Can you please tell me what is the most appropriate data type in SQL that i should use? Do i need conversion to store and get data in SQL database.

Thanks a lot for your help. I reall do appreciate that.

Maverick

WarlockSoul
April 12th, 2007, 09:19 AM
You could store this in a VarBinary or xml.

hspc
April 13th, 2007, 04:51 AM
If the array is large, you can store it in image field
this article explains this:
http://www.codeproject.com/cs/database/ImageSaveInDataBase.asp