locked
Exception calling "ExecuteNonQuery" with "0" argument(s): "CommandText property has not been initialized. RRS feed

  • Question

  • I have CSV file  which has sdimiler  data I am inserting those  date to desinated table and while executing this  query mentioned below I get error mentioned in TITLE

    insert into SU_EDIT_DETAIL(EDIT_FUNCTION, TABLE_FUNCTION, CODE_FUNCTION, CODE_TYPE,CODE_BEGIN, CODE_END, EXCLUDE, INCLUDE_X, OP_NBR, TRANSCODE, VOID, YMDEFF, YMDEND, YMDTRANS)"
    select  $($line."EDIT_FUNCTION"),($line."TABLE_FUNCTION"), ($line."CODE_FUNCTION"),'DIAG', ($line."CODE_BEGIN"), ($line."CODE_END"),' ',' ',' ','MIS', 'C',' ',20141001, 99991231, 20131120 
    from dual where not exists(select * from SU_EDIT_DETAIL where (EDIT_FUNCTION = ($line."EDIT_FUNCTION") and TABLE_FUNCTION = ($line."TABLE_FUNCTION")
    and CODE_BEGIN= ($line."CODE_BEGIN") 
    and CODE_END= ($line."CODE_END")));
    commit;


    Vijay Patel


    • Edited by Vijay Patel Tuesday, February 18, 2014 8:11 PM
    • Moved by Bill_Stewart Tuesday, February 18, 2014 8:19 PM Move to more appropriate forum
    Tuesday, February 18, 2014 8:06 PM

Answers

  • This SQL appears to be Oracle PL/SQL.  You may want to post in the Oracle forum.  If you are habving issues with the ADO.NET objects then you need to supply more of your code.


    ¯\_(ツ)_/¯

    • Proposed as answer by scott_morris-ga Wednesday, February 19, 2014 1:47 PM
    • Marked as answer by Kalman Toth Thursday, February 27, 2014 3:03 PM
    Tuesday, February 18, 2014 9:47 PM

All replies

  • This SQL appears to be Oracle PL/SQL.  You may want to post in the Oracle forum.  If you are habving issues with the ADO.NET objects then you need to supply more of your code.


    ¯\_(ツ)_/¯

    • Proposed as answer by scott_morris-ga Wednesday, February 19, 2014 1:47 PM
    • Marked as answer by Kalman Toth Thursday, February 27, 2014 3:03 PM
    Tuesday, February 18, 2014 9:47 PM
  • Can you post your code

    As per execption it seems that you have not provided commad object's text property

    Mark as ans if you find it useful


    Shridhar J Joshi Thanks a lot

    Wednesday, February 19, 2014 10:23 AM