BUG: Table Populated With Zeros in the Identity ColumnID: Q155795
|
BUG #: Windows NT: 15764 (6.50)
15661 (6.00)
When you Insert into a table with an identity column using either
Select with "order by" and an outer join
-or-
Select with distinct and an outer join
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.
The left outer join syntax also results in the problem mentioned above. The
"order by" clause must be present and the column "ordered by" must not be
in Select list. The following is a sample query:
Insert into tabl(id) select authors.au_id from authors ,titleauthor
where authors.au_id *= titleauthor.au_id
order by authors.au_lname
go
select * from tbl
go
Keywords : kbprg SSrvProg kbbug6.50
Version : 6.5
Platform : WINDOWS
Issue type :
Last Reviewed: April 2, 1999