Hola estoy tratando de ejecutar un procedure que tiene un OPENQUERY a AS400 y me genera el siguiente error EXECUTE [dbo].[PRUEBA] 'PE0039' "Msg 7202, Level 11, State 2, Procedure PRUEBA, Line 20
Could not find server 'SELECT * FROM OPENQUERY(AS400,'SELECT A' in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers.", mi procedure es el siguiente:

ALTER PROCEDURE [dbo].[PRUEBA]
@NAME_USER VARCHAR(100)

AS
SET NOCOUNT ON
BEGIN

DECLARE @SQL VARCHAR(8000)


SET @SQL = 'SELECT A.UPUPRF,A.UPTEXT
FROM TECHLIB.DWSNAMES AS A
WHERE UPUPRF = ''' + @NAME_USER + ''''

SET @SQL = N'SELECT * FROM OPENQUERY(AS400,''' + @SQL + ''')'


PRINT @SQL
EXEC @SQL
END

Alguien que me pueda ayudar por favor.