Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

User defined function to parse delimited strings

By madhu_r,

This UDF parses a comma delimited string and returns a table with the parse strings as rows.
Usage:  select * from fn+PareseString('12,13,14,67')
Will return a table with the following rows
12
13
14
67

Can be modified to have an additional parameter for the type of delimiter.

Total article views: 735 | Views in the last 30 days: 2
 
Tags
miscellaneous    
sqlinsider scripts    
t-sql    
 
Contribute