muntasirrahman
asked on
You cannot create a Local sql Server as a Link server
Dear ALL,
I have inherited a server which shows following massage when I use 4 part table name.
My query is:
select
sum(amount) AS Event
from MylocalServer.RA_P07.dbo.P 07_C60A21_ stage
Server: Msg 7202, Level 11, State 2, Line 1
Could not find server ' MylocalServer ' in sysservers. Execute sp_addlinkedserver to add the server to sysservers.
When I use sp_addlinkedserver from Enterprise Manager it shows following Error:
You cannot create a Local sql Server as a Link server
And on sysservers table I have found no entry for MylocalServer
Can any one Help me on that
Thanks In Advance
Muntasir
I have inherited a server which shows following massage when I use 4 part table name.
My query is:
select
sum(amount) AS Event
from MylocalServer.RA_P07.dbo.P
Server: Msg 7202, Level 11, State 2, Line 1
Could not find server ' MylocalServer ' in sysservers. Execute sp_addlinkedserver to add the server to sysservers.
When I use sp_addlinkedserver from Enterprise Manager it shows following Error:
You cannot create a Local sql Server as a Link server
And on sysservers table I have found no entry for MylocalServer
Can any one Help me on that
Thanks In Advance
Muntasir
ASKER
i know, but it does not create problem with my other server
Execute this SELECT statement and tell me the values returned:
select host_name(), @@SERVERNAME
select host_name(), @@SERVERNAME
ASKER
Dear rafranscio
@@servername shows 'NULL' value
@@servername shows 'NULL' value
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Once @@SERVERNAME contains a value, try your query again.
select
sum(amount) AS Event
from RA_P07.dbo.P07_C60A21_stag