Storing a document in SQL

  • Is it possible to store a file in SQL? For example could i store a word file in SQL instead of the path to the word file?

  • If you're using SQL Server 2008 or 2008R2, you can use FILESTREAM.

    http://technet.microsoft.com/en-us/library/bb933993.aspx

    previous versions of SQL Server do not support storing/managing documents right in the database itself.

    ______________________________________________________________________________________________
    Forum posting etiquette.[/url] Get your answers faster.

  • Thanks that will help.

  • there's another thread on a very similar subject today:

    Retrieving Large Videos

    15-20MB in a varbinary(max)

    that you should read...

    basically, the filesystem is almost always faster than SQL for storing and retrieving a binary....so you should store the link to the file in the database, and not the binary itself.

    take a look and see some of the recomendations there...it's a good read.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply