SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Linked Server Creation - Connect sql sever 2008 from 2000


Linked Server Creation - Connect sql sever 2008 from 2000

Author
Message
Ramkumar.K
Ramkumar.K
Mr or Mrs. 500
Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)

Group: General Forum Members
Points: 511 Visits: 161
Hi,

Since this may be concerned as a kiddish question. But this is required.

I need to connect the sql server 2008 database from sql server 2000. Since the client has been using the 2000 version database and they want to pull some data from sql server 2008 database. I have tried to create the linked server for this with below T-SQL statements.

EXEC sp_addlinkedserver
@server = 'LS',@datasrc = 'ServerName',
@provider = 'SQLOLEDB', @srvproduct = '', @catalog = 'databaseName'

EXEC sp_addlinkedsrvlogin 'LS','false',NULL, 'Username', 'password'
EXEC sp_serveroption 'LS','data access','on'
EXEC sp_serveroption 'LS','rpc out','on'
EXEC sp_serveroption 'LS','rpc','on'


The linked server object is created. But when I am trying to fetch the objects with below query

select top 5 * from [CCM7Dev].OEDB70_intermediary.dbo.company

I have received the below error.

[color=#red][DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.[/color]

I am suspecting whether it is possible or not for below reasons.
>Version compatiability problem
>Provider mismatch or updagradation required
>Connection problem.

Note: I have used the valid credential to access the server. Openrowset method may not suit to my requirement.

Kindly advise me on this.

Thanks in advance.
Ramkumar.K

Ramkumar . K
Senior Developer
######################
No Surrender... No Give Up....
######################
javpinero
javpinero
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 974
Didi you ever find a solution to this? I am having the same problem.
Earl Downs
Earl Downs
Valued Member
Valued Member (67 reputation)Valued Member (67 reputation)Valued Member (67 reputation)Valued Member (67 reputation)Valued Member (67 reputation)Valued Member (67 reputation)Valued Member (67 reputation)Valued Member (67 reputation)

Group: General Forum Members
Points: 67 Visits: 83
I thank to yoy for the script above, it so helpfull to me.

I have the enterprise edition for sql server 2008 and standar for 2000. No aditional problems.

Regards.
ramkumar533-1142700
ramkumar533-1142700
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
Points: 19 Visits: 7
Thanks Man. Atlease for you it has worked. :-).
May be the SQL Server version name you specified could help to investigate further on this.

Thanks.
Luk - ARG
Luk - ARG
SSC Journeyman
SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)SSC Journeyman (91 reputation)

Group: General Forum Members
Points: 91 Visits: 201
This solution worked fine for me as well.

Thanks a lot.

Lucas
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search