hi all :
i have a problem.
i can run it in se38 and it's successful , but i cannot run it in background, can not use it in sm36, the data are not be inserted into sqlserver2008, and there are not any error messages.
could you help me ? thank you.
"-----------------------------------------------------------------------------------------
CONCATENATE
'Provider=' 'SQLOLEDB' ';'
'data Source=' p_ip ';'
'Initial Catalog=' p_conname ';'
'User Id=' p_name ';'
'Password=' p_password
INTO connstr.
CONDENSE connstr.
……………………………………………………
CREATE OBJECT cn 'ADODB.connection'.
CALL METHOD OF cn 'OPEN'
EXPORTING
#1 = connstr.
sql = ' INSERT INTO T1( AAA) …………………………'
CALL METHOD OF cn 'EXECUTE'
EXPORTING
#1 = sql.
IF SY-SUBRC = 0.
COMMIT WORK.
ENDIF.
from china.