Solved

Create sp_addlinkedserver  code for sql server 2005 express

Posted on 2010-09-22
2
1,157 Views
Last Modified: 2012-05-10
sql server 2005 express

Trying to get the following from below into  code to similiar to this:

exec sp_addlinkedserver @server='GpsFindMroData',
@srvproduct='Access',
@provider='Microsoft.Jet.OLEDB.4.0',
@datasrc='C:\Program Files\CrEn\Databases\mro.mdb'
go

But using the information below...

Thanks
fordraiders




Linked Server name :  LINKED_CHGO
Server Type : Other Data Source

server provider name: SQLNCLI

Product Name  :  RAYMOND

DATASOURCE:  PMTB04.campus.ggg.com

PROVIDER STRING: DSN=BMOnly;Description=PRODUCT db;UID=BMOnly;PWD=BMly;APP=Microsoft Office 2003;WSID=2CE942HWD1;DATABASE=CPIR_Product  


CATALOG: CPIR_Product

Open in new window

0
Comment
Question by:fordraiders
2 Comments
 
LVL 26

Accepted Solution

by:
tigin44 earned 500 total points
ID: 33735702
try this
USE [master]
GO
EXEC master.dbo.sp_addlinkedserver 
	@server = N'LINKED_CHGO', 
	@srvproduct=N'RAYMOND', 
	@provider=N'SQLNCLI10', 
	@datasrc=N'PMTB04.campus.ggg.com', 
	@provstr=N'DSN=BMOnly;Description=PRODUCT db;UID=BMOnly;PWD=BMly;APP=Microsoft Office 2003;WSID=2CE942HWD1;DATABASE=CPIR_Product', 
	@catalog=N'CPIR_Product'

GO

Open in new window

0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 33735783
Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question