Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing sp_addlinkedserver

Status
Not open for further replies.

Spenello

MIS
Joined
Jul 11, 2005
Messages
39
Location
US
We're running SQL Server 2005 with BizTalk 2006.

In the Application Event Viewer, there's a recurring warning Event ID 208: [SQL Server Scheduled Job 'TrackedMessages_Copy_BizTalkMsgBoxDb' (0xA63DAFB99BCC5743A8B28374C371F803) - Status: Failed - Invoked on: 2007-03-27 09:24:00 - Message: The job failed. The Job was invoked by Schedule 7 (Schedule). The last step to run was step 1 (Purge).].

So, I took a look at the Log File History for TrackedMessages_Copy_BizTalkMsgBoxDb job under COBIZDEV-2K3-2 > SQL Server Agent > Jobs in SQL Server Management Studio.

The tracked message reads as follows: Executed as user: NT AUTHORITY\SYSTEM. Could not find server 'COBIZDEV-2K3-2' in sysservers. Execute sp_addlinkedserver to add the server to sysservers. [SQLSTATE 42000] [Error 7202]. The step failed.

The workaround seems to be running this statement in sp_addlinkedserver: exec sp_addlinkedserver 'COBIZDEV-2K3-2', 'sql server'

However, I cannot find ,and not one seems to be able to specify, where sp_linkedserver is, how to locate it or how to use it.

Any help is appreciated.



 
sp_addlinkedserver is a system procedure that you can use to add a link server. My quesiton is.

Is COBIZDEV-2K3-2 a server in your domain? Can you ping it? You will also need a login. I would contact the vendor with this error as it appears to be a configuration error with BizTalk

- Paul [batman]
- If at first you don't succeed, find out if the loser gets anything.
 
COBIZDEV-2K3-2 is set up as a stand alone local server testing applications in a dev environment. The domain is it's own and not linked to any other machine.

We've never had to add a link server. What's the process to use sp_addlinkedserver as a system procedure to add a link server?
 
Here is the syntax for adding a link server.

Code:
sp_addlinkedserver [ @server= ] 'server' [ , [ @srvproduct= ] 'product_name' ] 
     [ , [ @provider= ] 'provider_name' ] 
     [ , [ @datasrc= ] 'data_source' ] 
     [ , [ @location= ] 'location' ] 
     [ , [ @provstr= ] 'provider_string' ] 
     [ , [ @catalog= ] 'catalog' ]

Check out BOL for a more indepth explantion of each parameter.

- Paul [batman]
- If at first you don't succeed, find out if the loser gets anything.
 
Thanks for your input. But, I think I need a lot more hand holding on this issue. BOL ??? and where exactly do you run the syntax.
 
No problem.

BOL = Book On-Line. It is installed when you install SQL Server tools and select documentation.

Here is an example.

Code:
[COLOR=blue]USE[/color] master;
[COLOR=blue]GO[/color]
[COLOR=blue]EXEC[/color] sp_addlinkedserver 
   [COLOR=red]'COBIZDEV-2K3-2'[/color],
   N[COLOR=red]'SQL Server'[/color]
[COLOR=blue]GO[/color]

I don't know how the program is trying to connect.




- Paul [batman]
- If at first you don't succeed, find out if the loser gets anything.
 
Run this through Query Analyzer

- Paul [batman]
- If at first you don't succeed, find out if the loser gets anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top