Sql server

Split string table value function sql server

Split string table value function sql server Function return a table. @String : value with separator ex: 1,2,3@Delimiter : define separator as characterif pass blank string then return one row with null you can set default value. Function with sql server script:Copy the below script execute in database.