Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Copy blobs between tables

Author  Topic 

pithhelmet
Posting Yak Master

183 Posts

Posted - 2007-11-19 : 14:51:32
Hi everyone,

We have a table that stores information in a blob field,
and we have an archival table.

We need to copy the blob from one table to another
table....

is this possible in a stored procedure?

thanks
tony

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-11-19 : 14:55:17
Do you get an error when you run INSERT INTO/SELECT FROM?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

pithhelmet
Posting Yak Master

183 Posts

Posted - 2007-11-19 : 16:16:48
The text, ntext, and image data types are invalid for local variables.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-11-19 : 16:22:09
Why are you using a local variable?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

pithhelmet
Posting Yak Master

183 Posts

Posted - 2007-11-20 : 09:22:34
We are copying from one table to another within a stored procedure
Go to Top of Page

evilDBA
Posting Yak Master

155 Posts

Posted - 2007-11-20 : 09:31:25
You dont need to use variables for that

INSERT INTO T1 (...) select ... from T2
Go to Top of Page

pithhelmet
Posting Yak Master

183 Posts

Posted - 2007-11-20 : 11:06:56
We will try that....

I think we were trying the select into, instead of insert into

Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-11-22 : 17:18:00
Select into is used to create new table.
Go to Top of Page
   

- Advertisement -