saving binary data in sql server 2005 using varbinary(max)

I want to save documents in sql server 2005 and only by using varbinary(max) as datatype. I am working on C# winform application.
Who is Participating?
Gautham JanardhanConnect With a Mentor Commented:
u can read documnets as raw file

byte[]bytes = System.IO.File.ReadAllBytes(Filename);

then using a command object

Command.CommandText = "insert into table (...,varmaxfield) values(.....,@varmaxvalue)";


shore-supportAuthor Commented:
abandoned qustion
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.