Saving files in SQL Server 2000 RRS feed

  • General discussion




    I code majorly in C# and i'm wondering if its possible to save a file (maybe a Word or Notepad file) in SQL Server 2000. Please illustrate as clearly as possible.


    Thanks in advance,



    Thursday, January 31, 2008 4:34 PM

All replies

  • Word is just another type of binary and you could store it in BINARY- or IMAGE- (same binary type, but has different size limitation) type column. Basically SQL Server has no idea if it is Word, some picture or other type of the file and it is just set of bytes (BLOB type). Here is sample how to work with binary data. Even though it sample for .jpg file, it will be same code for Word



    Friday, February 1, 2008 3:21 AM