Duplicate column names are not allowed in result sets obtained through OPENQUERY and OPENROWSET.

  • We have recently migrated from SQL Server 2000 to SQL Server 2008. In the existing store Procedure when opening an xml using OPENXML one column was defined twice and was working on 2000. However when we compile the same SP on 2008, the system gives me an error " Duplicate column names are not allowed in result sets obtained through OPENQUERY and OPENROWSET."

    I am not sure why this is coming in 2008, the last I want to do is change the existing working code.

    Please let me know in case you have any solutions.

    Thanks,

    Aman

  • Duplicate post, reply here: http://www.sqlservercentral.com/Forums/Topic1121034-391-1.aspx

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply