8
Full Text Index with Database Project Problem
I was running into issues with scripting full text indexes to my database project when doing a database compare from a SQL Server 2008 R2 database to my Visual Studio 2010. A new index was being created in my project each time I compared. I had the full text indexes working in the database so was unsure why visual studio kept trying to create new indexes in my database project and when I reversed the comparison it tried to drop my existing full text indexes.
This issue was report to Microsoft Connect but they were unable to reproduce and marked the issue as closed.
I traced the issue down to the “key index” value being missing from the full text index which was generated during the database -> database project comparison.
The issue is caused because the index which the full text index was keyed off of was really an extension of my primary key and was automatically named during the primary key creation. I was using the index shown below.
The solution was to create a new index and name it myself. I had to delete my existing full text index and create a new full text index and reference my newly created index. I just deleted my entire catalog and started over since but you may be able to just remove a single index instead of starting over completely. After creating the new index and new full text index to reference it the Visual Studio database comparison correctly brought in the name of the index and subsequent database comparisons worked as expected.
The Microsoft Connect article also lists my workaround now.
29
MS SQL Server Management Studio Intellisense Refresh
In MS SQL Server 2008 you will occassionally run into a problem where it appears you have an error in your query because intellisense doesn’t recognize changes that recently occured in your database. You need to refresh the intellisense in order for the recent changes to not appear as errors in your queries. To do this, you can go to Edit -> Intellisense -> Refresh Local Cache or you can type ctrl+shift+R.
Blogroll
@benmarch
- RT @minnebar: Interested in entrepreneurial opportunities? Check out the 2012 Minnesota Entrepreneur Kickoff on Feb 8: http://t.co/uSo1wu96
- @mygeekdaddy Ask if they've tried turning it off and on again. :)
- Just took advantage of the Pluralsight offer via BizSpark. Very cool. http://t.co/g0eB4xYX
- Spent all afternoon plumbing in a new vanity. During final step of install found a flaw in the sink. Now I have to return it. *sigh*
- What is the best tool for generating xml #schema related #documentation?
Tag Cloud!
Knowledge Bomb
- January 2012 (2)
- December 2011 (1)
- May 2011 (1)
- February 2011 (2)
- September 2010 (1)
- August 2010 (2)
- June 2010 (1)
- May 2010 (1)
- April 2010 (10)
- March 2010 (1)





