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.
Leave a comment
Blogroll
@benmarch
- RT @MOJOmn: What Does A VC Mean When He Says Your Product Is “A Feature And Not A Company”? http://t.co/L6xxaiZW - you'll get no $
- RT @pclindeman: Interesting Read: How Companies Learn Your Secrets: http://t.co/YZ7x47VO
- Had a great first day at http://t.co/dKlmltdx. Looking forward to tomorrow!
- @BizDevTalk I'm at buyfun.com in North Mankato.
- @coreybuzzell Yep, first day. It was great. I think it was a good move.
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)









