Visual Basic in SQL Server
Home > Ask the SQL Server Experts > Roman Rehak - SQL Server Development and Reporting Services Questions & Answers > Retrieve images from SQL Server and store in VB.Net
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

Retrieve images from SQL Server and store in VB.Net

Roman Rehak EXPERT RESPONSE FROM: Roman Rehak

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Expert advice on database development
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 05 December 2007
I'd like to know how to retrieve data from blob tables more quickly. When I retrieve data to my VB.Net application from SQL Server, it's taking too much time. What's the best way to do this?

>
EXPERT RESPONSE
While SQL Server is capable of storing images in blob columns, the retrieval of images from the database does incur certain overhead that you have already noticed. For that reason, many high performance Web sites store only image names and path-to-the image folders. The application then retrieves the image from the file system, rather than pulling it from the database. You didn't provide many details about how the application works or what it does with images. But, based on what I know, I would recommend storing path-to-image folders in a reference table, and then have a table that stores image names and any additional details you may need.

If you move images to another folder, you just modify the path to the image folder. Using this approach also makes image management much easier since you can easily preview, resize or move images stored in the file system. Storing them in the database often requires a lot of custom coding to implement image management. So, unless you have some really unique requirements, in most cases you are better off with images in the file system and image locations in the database.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Visual Basic in SQL Server
Developing CLR database objects: 10 tips, 10 minutes
CLR architecture
Creating CLR database objects
User-Defined Functions
CLR assemblies in SQL Server 2005
CLR triggers
Debugging CLR database objects
.NET database object security
User-Defined Types
Utility to dump SQL Server Express database as text file
Visual Basic in SQL Server Research

Roman Rehak - SQL Server Development and Reporting Services
Using BULK INSERT to insert rows from SQL Server dataset to table
SQL Server query to import database names
Troubleshoot SQL Server 2005 SP2 installation error
Workaround to Reporting Services error in SQL Server Express
How can I export stored procedures in SQL Server 2005?
Code to restore SQL Server databases in VB.NET
Stored procedure for a BULK INSERT to SQL Server 2005 text file
BULK INSERT to import data from file to SQL Server database
INSTEAD OF trigger to update a SQL Server table
Can you import Excel data to SQL Server Reporting Services?

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Visual FoxPro  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts