title: Storing C# data structure into a SQL database
body: <p>I am new to the world of ASP.NET and SQL server, so please pardon my ignorance ...</p>
  
  <p>If I have a data structure in C# (for e.g. let's just say, a vector that stores some strings), is it possible to store the contents of the vector as is in SQL table? I want to do this so that it fast to convert that data back into vector form as fast as possible without having to construct it element by element. Almost like writing binary data to a file and then reading it and copying it to an allocated structure in C.</p>
  
  <p>I've created a table on SQL Server 2008 for which a field is defined as VARBINARY(MAX). I thought I'd start with that.</p>
  
  <p>Could someone show me an example of how I would go about storing and retrieving a vector of, say, 10 strings, into and from that field? Is this even possible (I can't think of why not)?</p>
  
  <p>Thanks!</p>