Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

create function in microsoft sql server

CREATE FUNCTION dbo.StripWWWandCom (@input VARCHAR(250))
RETURNS VARCHAR(250)
AS BEGIN
    DECLARE @Work VARCHAR(250)

    SET @Work = @Input

    SET @Work = REPLACE(@Work, 'www.', '')
    SET @Work = REPLACE(@Work, '.com', '')

    RETURN @work
END
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #function #microsoft #sql #server
ADD COMMENT
Topic
Name
1+7 =