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)
Thank this author by sharing:
By Harsha Majety,
This function was written according to my needs , please modify to suit your requirements.
Input : VARCHAR(8000)
Output : VARCHAR(8000) [Formatted Phone Number]
'8601234567' returns '(860)123-4567'
Tested on : SQL 2000,2005,2008