storing pdfs in sql server 2008

i have an application that generates some pdf files in a directory.

So for example in my application I have a folder called TestFolder that contains the following:

Testrecord1.pdf
Testrecord2.pdf
Testrecord3.pdf


I'm using sql server 2008.

Is it possible to store all those pdfs in into SQL Server?
What i mean is, is it even possible to store pdfs inside a sql server table?
If so what sql server data type is best to store those pdfs?
I mean if these were image files instead of pdfs I could store the images inside a table using image type for the data type. But I'm not sure about pdfs.

or
Is it better to just store the path to to each of these pdfs in a sql server table.
LVL 1
maqskywalkerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brian CroweDatabase AdministratorCommented:
I would recommend storing the path in SQL Server.  SQL isn't particularly efficient at working with BLOB data.  You will also be bloating your database instance and affecting backup/restore functionality.  If you have to store them in SQL Server then you will want to use VARBINARY(MAX)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Neil RussellTechnical Development LeadCommented:
Agreed. Always try and avoid storing binary files in your database. Just store a reference to it far more efficient.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.