September 12, 2007, 09:56 AM
LeahI do know that there needs to be a 'log on' to the database by the MRE application. Do you have that 'built in'? Your administrator should know.
September 12, 2007, 12:13 PM
hammo1jThis runs code on EMPD which is not the default server attached to MRE
quote:
SQL EDA SET SERVER EMPD
-REMOTE BEGIN
ENGINE SQLMSS SET DEFAULT_CONNECTION EMP_DEV
SQL SQLMSS PREPARE SQLOUT FOR
SELECT name FROM Emp.dbs.Empl;
END
TABLE FILE SQLOUT
PRINT *
ON TABLE PCHOLD AS FAQLUDIA
END
-REMOTE END
On the remote server this chooses but does not define the connection.
quote:
ENGINE SQLMSS SET DEFAULT_CONNECTION EMP_DEV
Look in EDASPROF of the remote serve to find an entry like
ENGINE SQLMSS SET CONNECTION_ATTRIBUTES EMP_DEV/[id],[password][;database]
If no id and password are provided it will be attempting to connect through password passthrough. With a default server I know this can be achieved but with a remote server whether password passthru works or not I don't know.
If it does not you will have to code the connection with a guest id and password hard coded in EDASPROF (use server console to MD5 the password) that has enough rights to achieve what you're after.
September 13, 2007, 05:17 AM
PrasannaFrancis,
Your approach works. i am able to see the output.Initially there was a blank white screen.
Thanks