set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER FUNCTION [dbo].[ufn_getDateOfWeek] (@Date Datetime) ) AS BEGIN ); then '一' then '二' then '三' then '四' then '五' then '六' then '日' end; RETURN @returnValue END --------------------- set ANSI_NULLS ON…