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)
 FullText Queries

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-08-24 : 08:18:10
Terry writes "How can you use @variables in the Contains and ContainsTable statements without having to build a large execute SQL string?

For example:

where containstable(tblIngramQuickSearchFT,TitleAuthor, @strTitle)

instead of:
Set @strTitleJoinClause = "where containstable(tblIngramQuickSearchFT,TitleAuthor, '"""+ @strTitle +"""')"

   

- Advertisement -