﻿if exists (select name from dbo.sysobjects where name='CastStringToTable')
begin
	DROP FUNCTION dbo.CastStringToTable;
end