5

Try to use SQL Server 2016 STRING_SPLIT function in a stored procedure. It parses correct in SSMS. But in SSDT (latest version), the function can't be resolved, so the project cannot be compiled. Anybody know how to solve this? Thanks.

user3616544
  • 1,023
  • 1
  • 9
  • 31
  • What is the compatibility level of the database project set to? (See second screenshot here https://simonlearningsqlserver.wordpress.com/2013/11/08/controlling-database-compatibility-level-with-ssdt/) – Martin Smith Jul 12 '16 at 19:47
  • Thanks. I never checked. It is SQL Server 2016 (130). I think it should be fine. – user3616544 Jul 12 '16 at 20:05
  • Well if you're certain that you are using the most up to date version of SSDT report it here https://connect.microsoft.com – Martin Smith Jul 12 '16 at 20:17
  • Upvote the following connect issue: https://connect.microsoft.com/SQLServer/feedback/details/2906200/ssdt-failing-to-compile-if-string-split-is-used – KorsG Oct 01 '16 at 09:55

1 Answers1

2

This is a known bug in SSDT and we have a work item internally to fix it. The only workaround I can suggest, unfortunately, is to remove the STRING_SPLIT from the stored procedure definition and then alter the definition of the stored procedure as a post-deploy script action.

Steven Green
  • 3,387
  • 14
  • 17