Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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

1 solution

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[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900