SQL server2008R2

Hi, I have a linked server in my set up I need to find the linked server dependencies.Could anyone please help me out with the query for it?.Also i need the query for getting the actual datasource of the alias server.Please let me know about it in detail

Thanks in advance

more ▼

asked Jun 15, 2010 at 02:11 PM in Default

hemasree gravatar image

1 1 1 1

(comments are locked)
10|1200 characters needed characters left

1 answer: sort oldest

When you say dependencies, do you mean references to the linked server in stored procedures/functions etc.

You could search sys.sqlmodules

Select * from sys.sqlmodules where definition like '%linked server name%'

alternatively you could use 3rd party tools like Red Gate's SQL Search

more ▼

answered Jun 15, 2010 at 07:57 PM

Kev Riley gravatar image

Kev Riley ♦♦
53.9k 47 49 76

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Jun 15, 2010 at 02:11 PM

Seen: 1195 times

Last Updated: Jun 15, 2010 at 07:41 PM