VB6向SQL  SERVER存入图象:  
  http://support.microsoft.com/default.aspx?scid=kb;EN-US;258038  
    
  VB.NET向SQL  SERVER存入图象:  
  http://support.microsoft.com/default.aspx?scid=kb;EN-US;308042  
    
  C#向SQL  SERVER存入图象:  
  http://support.microsoft.com/default.aspx?scid=kb;EN-US;309158
USE AdventureWorks
GO
CREATE TABLE myTable(FileName nvarchar(60), 
  FileType nvarchar(60), Document varbinary(max))
GOINSERT INTO myTable(FileName, FileType, Document) 
   SELECT 'Text1.txt' AS FileName, 
      '.txt' AS FileType, 
      * FROM OPENROWSET(BULK N'C:\a.jpg', SINGLE_BLOB) AS Document
GO