Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

why ADODB.connection can not be used in background?

$
0
0

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.        


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>