Share via

String Split not working - not enough arguments

Christopher Jack 1,616 Reputation points
2022-03-04T13:37:28.853+00:00

Hi,

I am trying to insert a string results into a temp table using the following

create table #Temp
(
sku nvarchar(400)
)
insert #Temp(sku)
SELECT value
from STRING_SPLIT (@sku2, ',')

However I am getting the following error when I highlight string_split - an insufficient nummber of arguments where supplied for for the function String_split .

Thanks

Chris

Developer technologies | Transact-SQL
Developer technologies | Transact-SQL

A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


Answer accepted by question author

Tom Phillips 17,786 Reputation points
2022-03-04T13:55:30.827+00:00

That is just a warning from Intelisense in SSMS. It can be ignored. I hope it gets fixed soon.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Christopher Jack 1,616 Reputation points
    2022-03-07T10:36:40.99+00:00

    Thanks, it seems to be because it was reading the variable in.. it was a intellisense issue.

    Thanks

    Chris

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.