|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Sunday, September 09, 2012 11:56 PM
Points: 99,
Visits: 97
|
|
I'm trying to create a Unique Index on composite primary key column(ColA, ColB) for Full Text Indexing. I could create the index, but I'm not able to create a full text index based on that. Any pointers? Appreciate help. Thanks, Srinivas.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, January 28, 2013 1:45 AM
Points: 386,
Visits: 199
|
|
What datatype are your two columns. Can you post the create fulltext index command.
Cursors never. DTS - only when needed and never to control.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Sunday, September 09, 2012 11:56 PM
Points: 99,
Visits: 97
|
|
| Both are integer columns(Item_Id int, Attribute_id int). And I'm trying to create the Full Text Index using SSMS(Management Studio). Unique index was created successfully. Trying to create Full Text Index by using it in SSMS it asks for a unique index. but my index does not show up in the drop down.
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Monday, May 06, 2013 1:09 PM
Points: 15,439,
Visits: 9,569
|
|
Per MSDN:
KEY INDEX index_name Is the name of the unique key index on table_name. The KEY INDEX must be a unique, single-key, non-nullable column. Select the smallest unique key index for the full-text unique key. For the best performance, we recommend an integer data type for the full-text key.
It has to be single-key. That means one column. Can't be compound.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Sunday, September 09, 2012 11:56 PM
Points: 99,
Visits: 97
|
|
| I think I got it. I created a dummy Identity column on TableC and used it as an unique index for my Full Text Index. And it works. :)
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Monday, May 06, 2013 1:09 PM
Points: 15,439,
Visits: 9,569
|
|
srinivas-406082 (11/12/2010) I think I got it. I created a dummy Identity column on TableC and used it as an unique index for my Full Text Index. And it works. :)
Cool biz. Well done.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
|
|
|
|