[dba-SQLServer] Getting pictures into a blob in SQL Server

James Barash James at fcidms.com
Thu Jun 17 08:22:19 CDT 2004


John:

Here is the Microsoft knowledgebase article on doing just that using ADO.

http://support.microsoft.com/default.aspx?scid=kb;[LN];Q258038 

Hope it helps.

James Barash

-----Original Message-----
From: dba-sqlserver-bounces at databaseadvisors.com
[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Thursday, June 17, 2004 8:56 AM
To: SQLServer; 'Access Developers discussion and problem solving'
Subject: [dba-SQLServer] Getting pictures into a blob in SQL Server

I got a call from someone yesterday needing to get 25000 pictures into a
blob field in SQL Server.  The program he is attempting to use apparently
stores the pictures it uses in such a field.  These pictures are currently
stored as GIFs (I believe) on the hard drive.

I can write a program to cycle through a dir on the disk, but would I just
read the text into a string and dump it into the field, save and move on?
Has anyone ever done this?  

I included AccessD in this request as I am guessing I'll just do it through
VBA in AccessD.

John W. Colby 
www.ColbyConsulting.com


_______________________________________________
dba-SQLServer mailing list
dba-SQLServer at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
http://www.databaseadvisors.com





More information about the dba-SQLServer mailing list