There has always been the debate as to whether to store binary large object (BLOB) data such as images, documents, audio and video inside the database or outside on the file system. The problem with storing the BLOB data inside the database was that the database would become huge and unwieldy. The downside with storing BLOB data as external files was that your data would be exposed in terms of the lack of transaction processing and synchronized recovery after system failures.
Now, in SQL Server 2008, you have the best of both worlds with the introduction of the Filestream storage option. No longer do you have to make compromises. This option allows the storage of SQL Server BLOB data externally on the file system with synchronized, durable transaction processing and full recovery options.
The way it works is that the varbinary(max) data type is used in conjunction with the Filestream storage attribute on a column. Another benefit is that although normal varbinary(max) columns are limited to 2GB, you are actually only limited by your hardware with Filestream storage.
I know what you're thinking. Yes, now you can store your favorite version of "Star Wars" within a SQL Server database. May the Force be with you!
Cheers,
Brian
See this week's posts...
Shipper lost another backup tape? No worries in SQL Server 2008
Brian D. Egler, MCITP-DBA/MCSE/MCT, is currently an instructor with Global Knowledge, teaching various Microsoft training courses such as MCSE, MCITP-DBA and other SQL Server courses. He is a SQL specialist and an expert on Exchange, Windows, .Net and XML. Egler has been a technical instructor for 16 years and has more than 10 years experience with SQL Server, data modeling, database design, application development including IMS, DB2, Sybase. In addition, he is member of the Project Management Institute.
Global Knowledge sponsors a monthly giveaway on Microsoft Subnet. Check out the Microsoft Subnet home page for details.
Global Knowledge offers a comprehensive catalog of Microsoft courses, including:
MCITP: Database Administrator Boot Camp
SQL Server 2005 Administration
MCITP: Enterprise Administrator Boot Camp
More Microsoft Courses
The opinions expressed in this Weblog are those of the writer and may not represent the opinions of Network World.
|
|
Post new comment