Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: How can i find AGE in date field and to to round

    Try this UDF:

    -----------------------------------------------------------------------------------

    SET QUOTED_IDENTIFIER ON

    GO

    SET ANSI_NULLS ON

    GO

    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[udf_AgeFromDOB]') and xtype in (N'FN', N'IF', N'TF'))

    drop function [dbo].[udf_AgeFromDOB]

    GO

    CREATE FUNCTION [dbo].[udf_AgeFromDOB]

    (

    @DOB as...

Viewing post 1 (of 1 total)