set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO create FUNCTION [dbo].[FunTodaySunDate]() RETURNS char(8) AS begin return dbo.[FunSunDate](null) end