开发者

Store object to database

I want to retrieve binary stream object from Collections, to be stored in a 开发者_如何学运维Database table as varbinary. How is it possible to store to database using ASP.Net with C# ? I am using SQL Server 2008. What will be the process to store to database including connection process ?


Why would you want to do that ? that is not what a database is suited for. Perhaps you should move the files to the filesystem of the database server and store meta-data about the files in the actual database.


The easiest solution for this would be to serialize the objects. http://msdn.microsoft.com/en-us/library/7ay27kt9%28VS.71%29.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜