Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textcopy - image data types

Status
Not open for further replies.

Vivianez

Programmer
Oct 10, 2001
25
BR
I´m using the command line "textcopy" to store images in a table. But the textcopy returns:
Text or image pointer and timestamp retrieval failed.

What is wrong?
 
I created a table named teste in Northwind database.
id Char(10)
photo image

textcopy /S sqlserver /U nome /P pass /D northwind /T teste /C photo /W where id = '1' /F c:\file.bmp \I \Z

It returns:
Error:Text or image pointer and timestamp retrieval failed.
 
My belief is it is the spaces afetr the swithches that is killing you.
I think you also need quotes around the where and the file swithes..



the command should look more like

Code:
textcopy /Ssqlserver /Unome /Ppass /Dnorthwind /Tteste /Cphoto /W"where id = '1'" /F"c:\file.bmp" \I \Z

Good Luck

Rob
 
I've tried without the spaces and the same message...
Another clue?
 
Solution found....
You should insert something into text/image column before copy text/image into it. I mean, this value should not be null. You should write (for example):

INSERT INTO [dbo].[images] VALUES ('1', 0x0, null)

instead of:

INSERT INTO [dbo].[images] VALUES ('1', null, null)

Otherwise, you will get the following error message:

ERROR: Text or image pointer and timestamp retrieval failed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top