I have a stored procedure that takes a string of an array of identifiers delimited by channels and parses them. I want this to happen in a transaction, so there is no need to transfer them one at a time.
If I use varchar (max) to not limit the size of the passed argument, will this cause problems? I donโt see how the limit is hit, but I also donโt want to guess or put an arbitrary constraint on the string.
CREATE PROCEDURE myProc @IDs varchar(max) AS BEGIN ... END GO
tsql stored-procedures
Kenoyer130
source share