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.
Author |
Topic |
wickedhangover
Starting Member
5 Posts |
Posted - 2007-09-28 : 09:32:46
|
Ok, here's the problem I am having that I do not really understand. I'm creating an assembly to do this so in basic terms, this is what my code implies:select * from someDatabase where contains(*,'"some search phrase"')in terms of the stored procedure it would be something likedeclare @searchPhraseselect * from someDatabase where contains(*,@searchPhrase)This only works if the search phrase is a single word, what is the syntax I need to use in the stored procedure to emulate using '"..."' as opposed to what seems to be the default '...' ? |
|
Kristen
Test
22859 Posts |
Posted - 2007-09-28 : 10:51:33
|
Does this not do the Phrase thingie?declare @searchPhraseSET @searchPhrase = '"some search phrase"'select * from someDatabase where contains(*,@searchPhrase) Kristen |
|
|
wickedhangover
Starting Member
5 Posts |
Posted - 2007-09-28 : 11:35:21
|
I think this might have answered my question. I need to look into this sort of method to see if it will work. I guess the problem is that since this is all generated as a CLR assembly and I am using .net specific syntax to generate the variables, I never have the chance to initialize the value in that manner. But I might know of a work around that will. |
|
|
|
|
|