Posts

Showing posts from October, 2010

Why do I get this message

When MsSql server expresses itself by the following error: "Internal Query Processor Error: The query processor could not produce a query plan" Usually this message is due to some invalid or conflicting settings with the quoted identifier setting. My lack of interest kept me from learning the mechanics about the error. Usually fixed by removing all set quoted identifier - modifiers in your .sql-files then control this globally with your client (like sqlcmd.exe -I).

Regular expressions cheat sheet

http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/

MsSql 2008 full-text limitations

In SQL 2008 fulltext intexes exclude stopwords. The default stoplist can be disabled by using with stoplist off when creating the fulltext index on the table. Another limitation that I cannot seem to get around is that fulltext search function contains only allow wildcard characters at the end. Probably due to the same index limitations as ends-with ( like '%word' ) searches has. See following examples: Will not match "Joel" select * from Person where contains(FirstName,'"*oel*") Will match "Joel" select * from Person where contains(FirstName,'"*Joe*")