简体   繁体   中英

Populating a Stoplist in SQL Server using SSDT

I'm using SQL Server Data Tools (SSDT) to manage my database project but I don't seem to be able to populate a FULLTEXT STOPLIST.

CREATE FULLTEXT STOPLIST [MyStopList] FROM SYSTEM STOPLIST;
SQL70010: A FROM clause is not supported for CREATE FULLTEXT STOPLIST statement

I'm using the latest version of Visual Studio 2015 and SSDTs.

Is there any way round this?

I'm having the same issue. Trying this in a post deploy script results in the same error. The FROM keyword gets underlined in red even before building the dacpac.

Just found this link with MS response. https://social.msdn.microsoft.com/Forums/en-US/3d89831e-43d8-4fe5-8ca5-d604a93789cb/sql70010-a-from-clause-is-not-supported-for-create-fulltext-stoplist-statement?forum=ssdt

"There is no support for the FROM clause. Because the from clause references a stop list definition that is not in the project, SSDT has no way of understanding the stoplist without the referenced database. This is one example where the declarative model limits some of the supported TSQL syntax as if the elements in the database are not completely defined in the project or referenced projects, SSDT cannot model them correctly in the project system."

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