Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Special Characters

 
   Database Help (Home) -> Full Text RSS
Next:  Full text index - migration  
Author Message
dvc

External


Since: Feb 15, 2005
Posts: 5



(Msg. 1) Posted: Tue Apr 15, 2008 9:34 am
Post subject: Special Characters
Archived from groups: microsoft>public>sqlserver>fulltext (more info?)

A very simple question about the difference in behaviour between 2000 and
2005 fti:

the following search in a parts catalog works in SQLServer 2000

select count(1)
from dbo.partsdescription
where contains(*,'15"')

but returns Msg 7630 syntax error near '"' in the full-text search condition
'15"'

What exactly has changed to cause this error and is there a workaround?

Thank you for your help

 >> Stay informed about: Special Characters 
Back to top
Login to vote
Hilary Cotter3

External


Since: Aug 28, 2004
Posts: 454



(Msg. 2) Posted: Thu Apr 17, 2008 5:48 am
Post subject: Re: Special Characters [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The parser was less strict in SQL 2000. It seems you have stumbled across a
sequence that works. The work around would be strip non-alphanumeric
characters from the end of your search string.


--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

"dvc" <dvc.DeleteThis@discussions.microsoft.com> wrote in message
news:25EB86A7-9FEF-43E1-B404-618217B944F4@microsoft.com...
>A very simple question about the difference in behaviour between 2000 and
> 2005 fti:
>
> the following search in a parts catalog works in SQLServer 2000
>
> select count(1)
> from dbo.partsdescription
> where contains(*,'15"')
>
> but returns Msg 7630 syntax error near '"' in the full-text search
> condition
> '15"'
>
> What exactly has changed to cause this error and is there a workaround?
>
> Thank you for your help
>
>

 >> Stay informed about: Special Characters 
Back to top
Login to vote
dvc

External


Since: Feb 15, 2005
Posts: 5



(Msg. 3) Posted: Thu Apr 17, 2008 5:48 am
Post subject: Re: Special Characters [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hilary, thank you for the reply - we already implement your suggested
workaround for most of our full-text searches and so will extend this to the
parts catalog. I guess I was also angling for a slightly more technical
account of how and where parser functionality has changed between 2000 and
2005, but thank you anyway!

dvc

"Hilary Cotter" wrote:

> The parser was less strict in SQL 2000. It seems you have stumbled across a
> sequence that works. The work around would be strip non-alphanumeric
> characters from the end of your search string.
>
>
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
>
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
>
> "dvc" <dvc DeleteThis @discussions.microsoft.com> wrote in message
> news:25EB86A7-9FEF-43E1-B404-618217B944F4@microsoft.com...
> >A very simple question about the difference in behaviour between 2000 and
> > 2005 fti:
> >
> > the following search in a parts catalog works in SQLServer 2000
> >
> > select count(1)
> > from dbo.partsdescription
> > where contains(*,'15"')
> >
> > but returns Msg 7630 syntax error near '"' in the full-text search
> > condition
> > '15"'
> >
> > What exactly has changed to cause this error and is there a workaround?
> >
> > Thank you for your help
> >
> >
>
>
>
 >> Stay informed about: Special Characters 
Back to top
Login to vote
Hilary Cotter3

External


Since: Aug 28, 2004
Posts: 454



(Msg. 4) Posted: Thu Apr 17, 2008 8:37 am
Post subject: Re: Special Characters [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I don't have one unfortunately, however see this post for a reference to
other parser anomalies in SQL 2000:

http://groups.google.com/group/microsoft.public.sqlserver.fulltext/msg...06fb365


"dvc" <dvc RemoveThis @discussions.microsoft.com> wrote in message
news:ACEA8514-7A7C-4F36-9F5F-C86A0C6008E6@microsoft.com...
> Hilary, thank you for the reply - we already implement your suggested
> workaround for most of our full-text searches and so will extend this to
> the
> parts catalog. I guess I was also angling for a slightly more technical
> account of how and where parser functionality has changed between 2000 and
> 2005, but thank you anyway!
>
> dvc
>
> "Hilary Cotter" wrote:
>
>> The parser was less strict in SQL 2000. It seems you have stumbled across
>> a
>> sequence that works. The work around would be strip non-alphanumeric
>> characters from the end of your search string.
>>
>>
>> --
>> Hilary Cotter
>> Looking for a SQL Server replication book?
>> http://www.nwsu.com/0974973602.html
>>
>> Looking for a FAQ on Indexing Services/SQL FTS
>> http://www.indexserverfaq.com
>>
>> "dvc" <dvc RemoveThis @discussions.microsoft.com> wrote in message
>> news:25EB86A7-9FEF-43E1-B404-618217B944F4@microsoft.com...
>> >A very simple question about the difference in behaviour between 2000
>> >and
>> > 2005 fti:
>> >
>> > the following search in a parts catalog works in SQLServer 2000
>> >
>> > select count(1)
>> > from dbo.partsdescription
>> > where contains(*,'15"')
>> >
>> > but returns Msg 7630 syntax error near '"' in the full-text search
>> > condition
>> > '15"'
>> >
>> > What exactly has changed to cause this error and is there a workaround?
>> >
>> > Thank you for your help
>> >
>> >
>>
>>
>>
 >> Stay informed about: Special Characters 
Back to top
Login to vote
dvc

External


Since: Feb 15, 2005
Posts: 5



(Msg. 5) Posted: Thu Apr 17, 2008 8:38 am
Post subject: Re: Special Characters [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hilary, thank you again for this reference.

"Hilary Cotter" wrote:

> I don't have one unfortunately, however see this post for a reference to
> other parser anomalies in SQL 2000:
>
> http://groups.google.com/group/microsoft.public.sqlserver.fulltext/msg...06fb365
>
>
> "dvc" <dvc.RemoveThis@discussions.microsoft.com> wrote in message
> news:ACEA8514-7A7C-4F36-9F5F-C86A0C6008E6@microsoft.com...
> > Hilary, thank you for the reply - we already implement your suggested
> > workaround for most of our full-text searches and so will extend this to
> > the
> > parts catalog. I guess I was also angling for a slightly more technical
> > account of how and where parser functionality has changed between 2000 and
> > 2005, but thank you anyway!
> >
> > dvc
> >
> > "Hilary Cotter" wrote:
> >
> >> The parser was less strict in SQL 2000. It seems you have stumbled across
> >> a
> >> sequence that works. The work around would be strip non-alphanumeric
> >> characters from the end of your search string.
> >>
> >>
> >> --
> >> Hilary Cotter
> >> Looking for a SQL Server replication book?
> >> http://www.nwsu.com/0974973602.html
> >>
> >> Looking for a FAQ on Indexing Services/SQL FTS
> >> http://www.indexserverfaq.com
> >>
> >> "dvc" <dvc.RemoveThis@discussions.microsoft.com> wrote in message
> >> news:25EB86A7-9FEF-43E1-B404-618217B944F4@microsoft.com...
> >> >A very simple question about the difference in behaviour between 2000
> >> >and
> >> > 2005 fti:
> >> >
> >> > the following search in a parts catalog works in SQLServer 2000
> >> >
> >> > select count(1)
> >> > from dbo.partsdescription
> >> > where contains(*,'15"')
> >> >
> >> > but returns Msg 7630 syntax error near '"' in the full-text search
> >> > condition
> >> > '15"'
> >> >
> >> > What exactly has changed to cause this error and is there a workaround?
> >> >
> >> > Thank you for your help
> >> >
> >> >
> >>
> >>
> >>
>
>
>
 >> Stay informed about: Special Characters 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
funny search results with 'contains' clause - hi, it is really funny how ft search works: it seems to depend highly on what could be indexed, but it still doesn't follow a determined order. consider the following queries: select name from person where contains(name, 'hammer') select name from..

Insert Into Without Log - Hi, Can I create an Insert Into Query without sql server registration log? Thx.

SQL 2K : custom word breaker ? - Hi, Is it possible to create a custom word breaker for SQLServer fulltext.... I use french word breaker, but for some specific tables, it's not exactly what I want... Seems such a dream will be feasible in SQL 2K5. Please anyone who knows, tell me the....

restore to another server of db with FT catalogs - If we restore a backup copy of a production db having FT catalogs onto a laptop running SQL Server Developer version, the restored db will contain references to FT catalogs whose underlying system files are not yet present on the laptop (because backup..

fulltext search not working - HI!, Fulltext search is not working, i have two databases, fulltext search functionality was working fine on both of them till now. but suddenly fulltext search on one of the databases started giving out errors. when i try to populate, rebuild was..
   Database Help (Home) -> Full Text All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]