Solved

Create sp_addlinkedserver  code for sql server 2005 express

Posted on 2010-09-22
2
1,153 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need help with a query 3 46
SQL Date from a string 4 57
Query to Add Late Tolerance 10 60
Help with SQL - TOP 10 by date and by group 13 34
There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

896 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now