Thanks joe, but this opens a security issue because most of the time I will
be using sql authentication, not windows authentication so I would have to
include the password in the connection string and that could be risky in
some cases. The solution I used worked in my case but I believe that
Microsoft's implementation could have been improved by allowing multiple
links to the same server from the same server, just allow the creator of the
linked server to change the name of the linked server object, so, for
example, Server A could have linked server objects "mylink-user1-servB" and
"mylink-user2-ServB" which go to the same server, but use different user
names. This would be the same as having 2 connection objects in an SSIS
2005 package linking to the same server, but using different credentials and
having different names. Makes sense obviously if it is available at SSIS
level, to be available at DB Engine level, yes?
Thanks again, Nick.
"Joe H" <hortoristic at gmail> wrote in message
> Won't OPENROWSET do what you need?
>
> "Nick Large" wrote in message
>
>> Hi.
>>
>> I am promoting a data warehouse to production. Part of the ETL process
>> relies on a stored proc to return data to an SSIS application. This
>> process is causing some issue and I wonder if anyone can shed some light
>> on it.
>>
>> I have a server (A) which has a stored procedure I will call spMyProc.
>> This stored proc has references to server E because it needs to execute a
>> view on E to grab its data. the linked server in development that we
>> have does this fine because it uses the generic login and has been
>> assigned the correct permissions to select from the views and tables on E
>> with no security issue. In production the login is a specific one created
>> by someone else for collection of transaction logs from the system
>> databases. The user in production does not have the rights to the view or
>> the c.50 databases on that server that the view relies on. We are
>> between a rock and a hardplace because we dont want to change the login
>> permissions to allow to see the view and db's etc, and we don't want to
>> modify the stored procedure either because that brings the project back
>> by weeks for testing etc., is there another way? If not then can anyone
>> tell me how to run a select statement on the view on Server E, from
>> server A, using crudentials supplied inside the stored proc?
>>
>> Thanks,
>> Nick.
>>
>
> >> Stay informed about: Linked server problem