Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft SQL Server > Re: Storing BLO...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 11182 of 11517
Post > Topic >>

Re: Storing BLOBs outside database

by Erland Sommarskog <esquel@[EMAIL PROTECTED] > Jun 26, 2008 at 10:01 PM

Annonymous Coward (me@[EMAIL PROTECTED]
) writes:
> I remember readng that BLOBs can be stored externally (with reference to

> the BLOB file stored in tables instead).

Well, that you mean that you store the file name.
 
> Does anyone have any experience doing this ? I have a few questions:
> 
> 1).what are the things to watch out for (apart from obvious ones like 
> 'file not found' type errors).

As Plamen said, SQL 2008 has FILESTREAM, but on SQL 2005, the big 
problem is to get transactional consistency. And backups right.

> 2). How may a stored proc be written to fetch the BLOB data ? (An 
> example would be very helpful)

If the images are file, you don't fetch them from stored procedures, 
but you read them directly from the file system.

On SQL 2008 with FILESTREAM, you can read the blobs from stored procedure,
but the more performant way is return a filehandle to the client
that can read the blob directly outside SQL Server. 

> 3). How are errors handled in the stored proc that fetches the BLOB 
> data? (again an example would be very helpful)

What would be different here from reading a normal column?
-- 
Erland Sommarskog, SQL Server MVP, esquel@[EMAIL PROTECTED]
 Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
 




 4 Posts in Topic:
Storing BLOBs outside database
Annonymous Coward <me@  2008-06-26 11:49:34 
Re: Storing BLOBs outside database
"Plamen Ratchev"  2008-06-26 08:52:43 
Re: Storing BLOBs outside database
Sybaseguru <collap@[EM  2008-06-26 19:15:07 
Re: Storing BLOBs outside database
Erland Sommarskog <esq  2008-06-26 22:01:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:04:20 CST 2008.