简体   繁体   中英

Cannot create a virtual table in SQL Server using c#

I have a problem. I'm using Visual Studio 2013.

I cannot make my table a virtual table.

This is my code:

CREATE  TABLE [dbo].[Ime] 
(
     [Id]   INT            IDENTITY (1, 1) NOT NULL,
     [Name] NVARCHAR (MAX) NOT NULL,
     [MD5]  NVARCHAR (MAX) NOT NULL,

     PRIMARY KEY CLUSTERED ([Id] ASC)
);

And when I want to make it VIRTUAL by:

CREATE VIRTUAL TABLE [dbo].[Ime] 
    USING fts3(content TEXT);

It does not work. Can someone please explain to me the correct syntax ?

FTS3 is an extension module in SQLite , and is not applicable to Microsoft SQL Server.

The FTS modules must be enabled or else any SQL statement to create/drop an FTS3 or FTS4 tables will fail.

Refer to Enabling FTS3 and FTS4 documentation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM