JefB
Programmer
- Dec 29, 2000
- 56
We have 2 servers; SR1 and SR2. SR1 is running SQL7 on WinNT and SR2 is running SQL2k on WinNT.
Both servers have 'WBData' databases with 'MasterBuild' tables. The tables contain the same data and are designed the same. (We use the SR2.WBData.dbo.MasterBuild table as a backup to the other one). Permissions give all users equal access.
When I try to build a view in SR2.WBData to display data from the SR1.WBData table, I enter:
SELECT *
FROM SR1.WBData.dbo.MasterBuild
Syntax checks out OK, however, when I try to run it, the code changes to:
SELECT *
FROM SR1.WBData.dbo.MasterBuild MasterBuild_1
and I get this error:
"[Microsoft]{ODBC SQL Server Driver][SQL Server]OLE DB provider ‘SQL0LEDB’ supplies inconsistent metadata. An extra column was supplied during execution that was not found at compile time."
I assume that the extra column is the MasterBuild_1, which I did not put in, the system did!
What am I missing?
JefB
Both servers have 'WBData' databases with 'MasterBuild' tables. The tables contain the same data and are designed the same. (We use the SR2.WBData.dbo.MasterBuild table as a backup to the other one). Permissions give all users equal access.
When I try to build a view in SR2.WBData to display data from the SR1.WBData table, I enter:
SELECT *
FROM SR1.WBData.dbo.MasterBuild
Syntax checks out OK, however, when I try to run it, the code changes to:
SELECT *
FROM SR1.WBData.dbo.MasterBuild MasterBuild_1
and I get this error:
"[Microsoft]{ODBC SQL Server Driver][SQL Server]OLE DB provider ‘SQL0LEDB’ supplies inconsistent metadata. An extra column was supplied during execution that was not found at compile time."
I assume that the extra column is the MasterBuild_1, which I did not put in, the system did!
What am I missing?
JefB