Microsoft has posted a new article that details a SQL Server 2000 Service Pack 1 (SP1) bug. The article explains that executing a SELECT statement that has a nested query on a table that contains a computed column might generate the following Access Violation:
   ODBC: Msg 0, Level 19, State 1
   SqlDumpExceptionHandler: Process 61 generated fatal exception
   c0000005 EXCEPTION_ACCESS_VIOLATION.
   SQL Server is terminating this process.
   Connection Broken
 
To avoid this problem, the article recommends that you place the computed column's value into a variable, then use that variable in the SELECT list. However, the article also notes that good database design typically avoids storing computed columns in a table; performing the computations through queries is a better practice. For more information about this problem, see the Microsoft article, "BUG: SP1 Regression: SELECT Query on a Table with a Computed Column Generates Access Violation."

End of Article




You must log on before posting a comment.

If you don't have a username & password, please register now.

Reader Comments

I am with this problem. Is occurring with one job assembled by the "Database mainteance plain". This job makes the otimization of the databases and occurs in the command "select count(*) from dbo.sysindexes where id = object_id(N'[dbo].[A40 ] ') and indid=1"

as show in dump of sql/server.

Config: NT2000 SP2, Sql2000 SP1.

Denilton do Nascimento

I'm shocked at the "new" buy a reprint or EPrint of the articles that used to be free to subscribers. Why?

Paul

Paul