Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Linked server problem

 
   Database Help (Home) -> Data Warehouse RSS
Next:  Best way to design table to store attributes?  
Author Message
Nick Large

External


Since: Jan 12, 2009
Posts: 8



(Msg. 1) Posted: Fri Jan 23, 2009 11:30 am
Post subject: Linked server problem
Archived from groups: microsoft>public>sqlserver>datawarehouse (more info?)

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 
Back to top
Login to vote
Nick Large

External


Since: Jan 12, 2009
Posts: 8



(Msg. 2) Posted: Mon Jan 26, 2009 8:19 am
Post subject: Re: Linked server problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I ended up creating a table in my ETL that grabs the data from the view and
puts it in the datamart. The stored procedure was then modified to look at
the table instead, which actually worked out great for me for other reasons.
If you are experiencing the same issue I would think about it a little more
before implementing my resolve.

BTW, I still do not understand why MS did not incorporate some way of having
the same server linked more than once from the same server i.e. Server A has
2 linked server links to server B. The problem is that if the link connects
and the user does not have rights to the intended object on the destination
server, then the process of execution will fail - it doesn't recognize this
and use a secondary login for some reason (probably by design!?!), it just
bombs! If this is by design, then a re-work of the design might be in order.

Nick.


"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 
Back to top
Login to vote
Joe H

External


Since: May 21, 2008
Posts: 35



(Msg. 3) Posted: Mon Jan 26, 2009 8:30 am
Post subject: Re: Linked server problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Nick Large

External


Since: Jan 12, 2009
Posts: 8



(Msg. 4) Posted: Thu Feb 05, 2009 1:52 pm
Post subject: Re: Linked server problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Problem with multiple instant of SQL Server - I have 2 instant of SQL server on the same machine. 1st instant keep most of the static information - Dimensional data 2nd instant keep most of the transaction information. When I try to use the Analysis Services, I have 2 connection, but they can't ..

Implementing Conformed Dim/Fct in SQL Server 2000 - Can someone give me an overview of a strategy to physically implement conformed dimensions/facts for all my data marts in sql server 2000?...

Urgent: MS-BI (SQL Server 2005-AS/RS/IS)-CMM 5-Hyderabad (.. - Hi, A CMM Level 5 company is looking for Microsoft Business Intelligence (MS BI) professionals for its Hyderabad location. There is a an element of onsite travel & work to this position. Please keep the following points in mind before mailing your ...

SQL Scheduled Jobs - Is there a way to monitor schedule jobs and restart the jobs automatically when it faills and if it fails then notify the responsible person, is there a tool to do this ?

Running total with &quot;treshold value&quot; detection..? - Hi, I have to create a query which evalaute, for each year, the employees who reached a particular number of absences and when this value is reached. I have 1 000 000 records in my absence table. my table is like this: DateID, EmployeeID, ActivityID,...
   Database Help (Home) -> Data Warehouse All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]