Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB Link from MSSQL 2005 to MSSQL 2008

Status
Not open for further replies.

rob11nj

Programmer
Jan 5, 2006
18
US
I have a SQL Server 2005 DB (8.0.2055) and need to connect to another DB on a SQL 2008 (9.0.4207) server to pull some data. I've tried creating a new Linked Server entry selecting SQL Server as the server type and tried querying the data by using something like

SELECT * FROM OPENQUERY(linkname, 'SELECT * FROM dbname..tablename')

but I receive the following error:

[OLE/DB provider returned message: Deferred prepare could not be completed.]

I'm guessing I need to do something special to be able to connect to the 2008 DB but am not really sure what that is. Any help would be greatly appreciated.
 
Oops I messed up the version of the SQL2008.. I am not able to connect to it from my 2005 Management Studio so I don't know the exact version. The version I wrote down for it was for the wrong db server, please ignore that.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top