Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hello,
I have an sql server 2008 database with one blob field, I created in VB .net 2008 with ado .net (sqldataadapter, sqlconnection, dataset) a form which I insert from scanner an image of a document which I want to store among with other data. My problem is that I have reached about 160 records and see that computer memory is consumed by the application because of the blob field. I have many more records to insert. I want to ask if any tutorial or link or even better the sql string that will do paging (something like limit in Mysql), meaning to load only 15 records a time and when I navigate further to unload the previous 15 and load the next, any help.
 
Thank you
Posted 23-Jan-13 1:01am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Firstly I would advise storing the images in a separate table - this will help the paging with the other data.
Using the FILESTREAM attribute on your image field is also advised
 
You may find the following articles useful
 
http://www.simple-talk.com/sql/learn-sql-server/an-introduction-to-sql-server-filestream/[^]
 
and
 
Storing and Retrieving Images from SQL Server using Microsoft .NET[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 190
1 Jochen Arndt 165
2 PIEBALDconsult 150
3 BillWoodruff 148
4 DamithSL 140
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100