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
 Transact-SQL (2000)
 SQL Contains Clause

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-02-09 : 09:40:55
Albert writes "Why does this query

Select * from Products where (Contains,'D(-)vision')

return this error?

Syntax error occurred near '('. Expected ''''' in search condition 'd(-)vision'.


Running Microsoft SQL Server 2000.

Any help greatly appreicated.

Thanks,"

blindman
Master Smack Fu Yak Hacker

2365 Posts

Posted - 2006-02-09 : 10:03:57
Misplaced parenthesis.

Select * from Products where Contains([ColumnName], 'D(-)vision')
Go to Top of Page
   

- Advertisement -