Click here to Skip to main content
11,480,626 members (64,542 online)
Rate this: bad
Please Sign up or sign in to vote.
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
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[^]


Storing and Retrieving Images from SQL Server using Microsoft .NET[^]

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 294
1 OriginalGriff 190
2 CPallini 150
3 Richard MacCutchan 150
4 CHill60 130
0 Sergey Alexandrovich Kryukov 8,184
1 OriginalGriff 7,556
2 Sascha Lefèvre 3,114
3 Maciej Los 2,491
4 Richard Deeming 2,335

Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 23 Jan 2013
Copyright © CodeProject, 1999-2015
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