sql server - Read and Write data from/to BLOB in MS SQL using Visual C++ and OLE DB -


ca me? looking example how insert , data blob in ms sql server 2008. using ole db , visual c++. thanks

there's detailed info on topic (the write side anyway) here: sending blob data sql server using irowsetfastload , isequentialstream.

most of available samples simplistic , don’t demonstrate varying data length per row or using isequentialstream. in sample, you'll see both techniques in 1 source file. default, sample shows how use irowsetfastload send variable length blob data per row using in-line bindings. in case, in-line blob data must fit in available memory. method has better performance when blob data few bytes few mb, because there no additional stream overhead. larger data, data not available @ once in block, streaming better choice.

for readback there background , sample code on msdn here.

the sql server native client ole db provider not retrieve large data sql server until requested consumer. consumer should bind short data in 1 accessor, , use 1 or more temporary accessors retrieve large data values required.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -