2

I am trying to select through an linked server from SQL Server 2012 to SQL Server 2000.

The linked server has been setup and I can browser the target database through the linked server which indicates that permissions are not a problem.

However, when I try to run a query, I get the following error (not my actual sql):

Msg 7320, Level 16, State 2, Line 1
Cannot execute the query "SELECT * FROM BOB" against OLE DB provider "SQLNCLI10" for linked server

Anyone have any ideas of what the problem is and how to solve it?

Colin 't Hart
9,52015 gold badges37 silver badges44 bronze badges
asked Jun 6, 2013 at 2:19
3
  • 3
    Does your actual query include a four-part name? A linked server doesn't automatically include database reference, for example. Can you show the syntax you are using when you "try to run a query"? We can't see exactly what that is. Would also be useful to know how that differs from what you're doing when you "browse" the database and whether you are performing both actions as the same user. Commented Jun 6, 2013 at 3:37
  • Its of the form Server.Database.DBO.Table. They would be different users, so perhaps it is a permssions problem. Commented Jun 6, 2013 at 3:58
  • That would be my guess then, yes. Commented Jun 6, 2013 at 3:58

2 Answers 2

2

Using SQLNCLI10 to create a linked server to SQL Server 2000 causes a fault. You can create an odbc connection than attach tables to your 2012 database. Then you build your treatments in SQL 2012 database as if the table was native. This is just a workaround that sometimes works. It's not recommended for large data transaction, like more that 7MM.

answered Dec 11, 2013 at 21:47
1

Your query looks a little strange I think.

When querying involving a linked server, your syntax should look like this (including the brackets):

SELECT * FROM [LinkedServer].[RemoteDatabase].[User].[Table]
answered Jan 11, 2014 at 9:21

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.