Could Not Find Server 'Server Name' In sys.servers In SQL Server

I was working with a client and they had set up one sql server for an ETL process. When we tried to get the data from  the database we got the error:
 
"Could not find server 'server name' in sys.servers in SQL Server" 
 
How to resolve this
 
First you need to check if the server exists in sys servers,
  1. select name from sys.servers  
You will get the servers list here, if the server does not exist in the list, then add it using the command,
  1. EXEC sp_addlinkedserver @server = 'New_Server_Name'  
Once the server is added to the linked server, then you can log in like this,
  1. EXEC sp_addlinkedsrvlogin 'New_Server_Name','false',NULL,'USERNAME','PASSWORD'  
Now you can do whatever you want to do, you can use your local server now,
  1. exec [New_Server_Name].[Database_Name].dbo.Procedure_NAME 
Finally, you can drop this server from the linked server list using this command,
  1. sp_dropserver 'New_Server_Name''droplogins'