Network World
Saturday, November 22, 2008
DNSstuff.com
Get information about your IP
IP Information
50+ On-demand DNS and network tools

Brian Egler's SQL Server Strategies

Microsoft Subnet

Navigation

So you want to store movies in a SQL Server database? Go ahead, make my day.

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

Has Microsoft Deprecated your SQL code in 2008?”

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <i> <b> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <br /> <br> <p>
  • Lines and paragraphs break automatically.
  • You can use BBCode tags in the text.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

About Brian Egler

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.

RSS feed

Egler's archive.

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

Microsoft Subnet

RSS feed Microsoft news RSS feed

The opinions expressed in this Weblog are those of the writer and may not represent the opinions of Network World.

Advertisement: