简体   繁体   English

无法使用C#在SQL Server中创建虚拟表

[英]Cannot create a virtual table in SQL Server using c#

I have a problem. 我有个问题。 I'm using Visual Studio 2013. 我正在使用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. FTS3是SQLite中的扩展模块,不适用于Microsoft SQL Server。

The FTS modules must be enabled or else any SQL statement to create/drop an FTS3 or FTS4 tables will fail. 必须启用FTS模块,否则创建或删除FTS3或FTS4表的任何SQL语句都会失败。

Refer to Enabling FTS3 and FTS4 documentation. 请参阅启用FTS3和FTS4文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C#-以编程方式创建SQL Server表 - C# - Create SQL Server table programmatically SQL Server-使用C#将“创建表” SQL脚本与表定义进行比较 - SQL Server - Compare a 'CREATE TABLE' SQL script to a table definition using c# 使用C#在oracle服务器的表结构中的sql server migration studio中创建新表 - Create a new table in sql server migration studio with the table structure of oracle server using C# 使用 C# 插入 SQL 服务器表 - Insert into SQL Server table using C# 使用C#在SQL Server中监视表 - Watching a table in sql server using c# 使用C#从SQL Server中的单个表在ASP.NET中创建多个RadioButtonLists - Create multiple RadioButtonLists in ASP.NET from a single table in SQL Server using C# 从SQL Server表反向工程/创建C#接口 - reverse engineer/create c# interface from sql server table 在SQL Server中创建一个表,其中的名称是C#中的变量? - Create a table in SQL Server where the name is a variable in C#? 我需要使用visual studio(c#语言)创建一个sql server数据库表。 但表的名称必须是用户的输入 - I need to create a sql server database table using visual studio(c# language) . But the name of the table has to be an input from the user 使用C#在SQL表中创建“每月时间表/时间表日历” - Using C# to create a “monthly timetable/schedule calender” in a SQL table
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM