BUG: Access Violation When Using ANSI JOIN on a Table with ViewID: Q170224
|
An ANSI JOIN of a table with a view that was generated without a base table
may result in an access violation (AV). The following script demonstrates
this problem:
SELECT c = 0 INTO t
GO
CREATE VIEW v AS SELECT c = 0
GO
SELECT t.c, v.c
FROM t JOIN v ON t.c = v.c
GO
EXCEPTION_ACCESS_VIOLATION raised, attempting to create symptom dump
Initializing symptom dump and stack dump facilities
To work around this problem, try to avoid using an ANSI JOIN. For example,
the following script demonstrates the workaround for the above scenario:
SELECT t.c, v.c
FROM t, v
WHERE t.c = v.c
GO
Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
Keywords : kbusage SSrvGen SSrvGPF kbbug6.50
Version : 6.5
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 15, 1999