Microsoft KB Archive/308759

= FIX: Invalid Use of the Getdate Function May Cause Access Violation =

Article ID: 308759

Article Last Modified on 10/16/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Service Pack 3a

-



This article was previously published under Q308759



BUG #: 353429 (SHILOH_BUGS)



SYMPTOMS
An invalid use of the Getdate function within a function may cause an access violation and the following error message appears in Query Analyzer:

Server: Msg 443, Level 16, State 1, Procedure fnTestDate, Line 4

Invalid use of 'getdate' within a function.

ODBC: Msg 0, Level 19, State 1

SqlDumpExceptionHandler: Process 51 generated fatal exception c0000005

EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.

Connection Broken

You may find the following error messages in the SQL Server error log when the access violation occurs: 00603513 Module(sqlservr+00203513) (walk_exp_tree+00000016) 006034BD Module(sqlservr+002034BD) (get_expression_str+00000038) 005C679A Module(sqlservr+001C679A) (yyparse+0000145C) 00444BEC Module(sqlservr+00044BEC) (sqlpars+0000003C) 00411685 Module(sqlservr+00011685) (CSQLSource::FTransform+0000013C) 00449527 Module(sqlservr+00049527) (CSQLStrings::FTransform+000001A1) 00413632 Module(sqlservr+00013632) (CSQLSource::Execute+0000015B) 0044912C Module(sqlservr+0004912C) (language_exec+000003E1) 00412B1F Module(sqlservr+00012B1F) (process_commands+000000E0) 41073537 Module(UMS+00003537) (ProcessWorkRequests+0000024A) 41073355 Module(UMS+00003355) (ThreadStartRoutine+000000BC) 7800A27B Module(MSVCRT+0000A27B) (beginthread+000000CE) 77DB2C18 Module(KERNEL32+00002C18) (GetModuleHandleA+0000007A)



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack



STATUS
Microsoft has confirmed that this is a problem in Microsoft SQL Server 2000.

This problem was first corrected in Microsoft SQL Server 2000 Service Pack 2.

Additional query words: AV exception

Keywords: kbbug kbfix KB308759

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.