SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 Old Forums
 CLOSED - General SQL Server
 Error inserting IMAGE data column
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ask SQLTeam Question

0 Posts

Posted - 01/20/2006 :  08:40:24  Show Profile  Visit AskSQLTeam's Homepage
Andrew writes "While executing such a query:
INSERT INTO UserImages(UserID,ImageData)
select 823,Thumbnailphoto from openquery(ADSI,'SELECT Thumbnailphoto FROM ''LDAP://company.com'' WHERE objectCategory = ''Person'' AND objectClass = ''user'' AND mail = ''Smith@company.com''')

I'm getting such an error.

Server: Msg 3624, Level 20, State 1, Line 1

Location: record.cpp:2429
Expression: m_futureSize == 0 || rec.Size () == m_futureSize
SPID: 58
Process ID: 1472

Connection Broken

The problem is in inserting data(it's DATALENGTH is 36918 bytes) into the table IMAGE column, not selecting it as the select statement works fine.

I'm using MSSQL Server 2000 + SP4 and I've got two instances)(default and named(Used by SharePoint Portal)).
Windows 2003 Server OS

And if it's impossible to insert data in such a way how can I solve this problem.


Flowing Fount of Yak Knowledge

2706 Posts

Posted - 01/20/2006 :  14:38:56  Show Profile
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000