Re: FAIL TO USE GETDATE() ON A FUNCTION
From: Tibor Karaszi (tibor_please.no.email_karaszi_at_hotmail.nomail.com)
Date: 11/25/04
- Next message: Tibor Karaszi: "Re: i cannot start sqlserver's service"
- Previous message: Zarko Jovanovic: "Re: profiler: always running: howto?"
- In reply to: Comfort P.: "FAIL TO USE GETDATE() ON A FUNCTION"
- Next in thread: Aaron [SQL Server MVP]: "Re: FAIL TO USE GETDATE() ON A FUNCTION"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 25 Nov 2004 13:40:20 +0100
Search the archives and you will find workarounds and the reason for this. One workaround is to
create a view in which you call getdate and use that view. But be aware that this makes getdate
non-atomic and non-deterministic.
-- Tibor Karaszi, SQL Server MVP http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ "Comfort P." <comfort.peter@stcl.com> wrote in message news:u3hj6nu0EHA.3468@TK2MSFTNGP14.phx.gbl... > I have created my function call a getdate(). After running my function I get > the following error message: > INVALID USE OF GETDATE() IN A FUNCTION. > Is there any alternative to this as I need to know the current date in my > function? > >
- Next message: Tibor Karaszi: "Re: i cannot start sqlserver's service"
- Previous message: Zarko Jovanovic: "Re: profiler: always running: howto?"
- In reply to: Comfort P.: "FAIL TO USE GETDATE() ON A FUNCTION"
- Next in thread: Aaron [SQL Server MVP]: "Re: FAIL TO USE GETDATE() ON A FUNCTION"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|