Update Queries with Text fields

M

Marshall Smith

OK, Books Online is taking me in directions that I don't think I want to go
on this question.

I'm in the middle of redesigning a database. I want to move all the data
from one table into a different table, matching it up by primary key.
Everything works well, except for updating the columns with type text. I'm
trying to use a stored procedure that looks like:

UPDATE NewTable
SET NewTable.NewText =
(SELECT OldTable.OldText
FROM OldTable
WHERE OldTable.PrimaryKey = NewTable.PrimaryKey)

I'm getting datatype errors. My guess is that it doesn't want to move the
pointers over. What would be a proper way to handle this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top