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)
 Need help with REPLACE function

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-10-17 : 11:12:28
David writes "I've tried using the REPLACE function in an UPDATE Query but it returned the error:

Argument data type text is invalid for argument 1 of replace function.

Here's the statement:

UPDATE tablename SET columnname = REPLACE( columnname ,' whatiwanttoreplace ',' whatimgoingtoreplacewith ' )

The database resides on SQL SERVER 7 and the ' columnname ' is a text data type

Please help
Thanks
David"
   

- Advertisement -