title: SQLServer 2012: Split String by delimiter in Stored Proc
body: <p>I have the following legacy code inside a stored proc...</p>
  
  <pre><code> CREATE PROCEDURE [dbo].[My_Proc]     
   -- Add the parameters for the stored procedure here    
     @ProductId int = 0,     
     @Attributes varchar(8000)
     ...
     DECLARE Attribute_Cursor CURSOR FOR    
       select [value] from SC_Splitter(@Attributes,',');
  </code></pre>
  
  <p>However, it says SC_Splitter is undeclared. Is there another way I can accomplish this?</p>