Re: Cannot use openquery in SSIS
- From: "Peter W. DeBetta" <debettap@xxxxxxxxxxx>
- Date: Fri, 12 Jan 2007 09:58:06 -0600
Can you create a connection in the new package to the linked server and call
the 'select top 1 * from table1' query directly on the server instead of
using OPENQUERY?
--
Peter DeBetta, MVP - SQL Server
http://sqlblog.com
--
"Maisie" <Maisie@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:72155216-8936-49FB-8B47-229CC98BDE67@xxxxxxxxxxxxxxxx
I am converting an existing SQL 2000 DTS package to SQL 2005 SSIS package.
However when I test the package in the solution, I get this message saying
that
[Execute SQL Task] Error: Executing the query "SELECT * FROM OPENQUERY
(MyLinkedServer, 'select top 1 * from table1')" failed with the following
error: "Could not find server 'MyLinkedServer' in sysservers. Execute
sp_addlinkedserver to add the server to sysservers.". Possible failure
reasons: Problems with the query, "ResultSet" property not set correctly,
parameters not set correctly, or connection not established correctly.
To make sure that my linked server is working, I tried to execute the same
TSQL statement and it works. Proving that my linked server is setup
correctly.
I have checked sysservers and my linked server is there. I even tried to
insert a new linked server via TSQL instead of by the wizard/window
(recommended by most the of searches I have done).
Can anybody help me with this? Is this a permissions thing?
.
- Prev by Date: Re: Subqueries in SQL Server
- Next by Date: Too much persisted security
- Previous by thread: how to set the Variables to a value in a asp script?
- Next by thread: Too much persisted security
- Index(es):
Relevant Pages
|
Loading