Can't create an index catalog in localdb v\11.0

感情迁移 提交于 2019-12-12 10:31:26

问题


SQL statement:

CREATE TABLE [dbo].[indexTable] (
    [mapId]   VARCHAR (50)  NOT NULL,
    [keyword] VARCHAR (900) NULL,
    PRIMARY KEY CLUSTERED ([mapId] ASC)
);

Go
CREATE FULLTEXT CATALOG FTSearch

This is the error I get

Creating [FTSearch]...
SQL72014: .Net SqlClient Data Provider:
Msg 9982, Level 16, State 100, Line 1
Cannot use full-text search in user instance.

I am using localdb\v11.0 that is installed along with visual studio 2012.


回答1:


localdb\v11.0 does not support fulltext index. I installed MS SQL Server 2012 express with Advanced Services and it worked like a charm. I had to create an entirely new database again though it wasn't really much of a problem for me as i just copy pasted all the DDL statements from the my previous database. Also i had to use '.\SQLEXPRESS' instead of '(LocalDb)\v11.0' as the server name.

During installation if you want to save disk space then only install Full-Text and Semantic Extractions for Search and leave all the other features unchecked.

EDIT: You can use your old databse. Copy the old database files to a new location preferably to something like C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA and run the following sql statement.

CREATE DATABASE databaseName 
    ON (FILENAME = 'C:\Program Files\Microsoft SQL
    Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\filename.mdf'), -- Main Data File .mdf
    (FILENAME = 'C:\Program Files\Microsoft SQL
    Server\MSSQL11.SQLEXPRESS\MSSQL\DATA\filename_log.ldf') -- Log file .ldf

    FOR ATTACH 
GO 


来源:https://stackoverflow.com/questions/16369730/cant-create-an-index-catalog-in-localdb-v-11-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!