Background Image

FORUM

조회 수 22366 추천 수 0 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

C#에서 자바로 생성한 프로시져 또는 함수를 호출합니다.

자바 프로시져에는 이상이 없는데 C#에서 호출을 하면 다음과 같은 에러가 발생합니다.

Syntax: please check syntax at '{', expecting EOF.

이런 경우가 언제 발생하는지 알고 싶습니다.

프로시져는 첨부 하였습니다. 

cubrid 로그에 다음과 같이 나오고 있습니다.

Time: 12/09/08 15:42:27 - SYNTAX ERROR *** ERROR CODE = -493, Tran = 3
Syntax: please check syntax at '{', expecting EOF.

  • ?
    flypig 2008.12.10 07:34
    정상적으로 SP가 등록 되어 있다면 먼저 질의 편집기를 이용하여 C#에서 사용하던 SP호출을 해 보시기 바랍니다.
    select sp_name(a,b,c...) from db_root;
    만약 질의 편집기를 이용하여 해당 SP가 정상적으로 수행이 된다면 아마도 프로그램에서 호출하는데에서 문제가 있을 것으로 판단됩니다. 문제가 없다면 C#에서 SP를 호출하는 부분만 올려 주신다면 문제를 해결하는데 도움이 될 것 같습니다.
  • ?
    hades 2008.12.10 18:49

    // 큐브리드의 질의편집기에서는 잘 실행이 됩니다.
    //C#에서 프로시져를 호출하는 부분입니다.

    public String DBProcedure(WizhomData data, String commandSTR)
            {
                String resultSTR = null;
                String dataSet = "resultset";
                String fill = "row";

                WizhomData contentData = data.GetWizhomData("content");
                WizhomData sqlData = contentData.GetWizhomData("sql");

                OleDbConnection conn = (OleDbConnection)Connect();
                OleDbDataAdapter adapter = new OleDbDataAdapter();

                String sql = "select sp_ins_member_info('20081210091616890', '고상주', '1111112222222', '02-111-1111', '010-111-1111', '', '', 'sangju', '111') from DB_CLASS where rownum = 1;";//DBConfig.getInstance().Get(sqlData.GetText("id"));

                ArrayList paramAL = sqlData.GetWizhomDataList("param");
                try
                {
                    OleDbCommand command = conn.CreateCommand();
                    command.CommandText = sql;
                    command.CommandType = CommandType.StoredProcedure;

                    /*
                    if (paramAL != null)
                    {
                        for (int i = 0; i < paramAL.Count; i++)
                        {
                            WizhomData paramData = (WizhomData)paramAL[i];
                            String type = paramData.GetText("type").ToLower();
                            String column = StringUtil.nullString(paramData.GetText("column"));
                            String value = paramData.GetText("value");
                            command.Parameters.Add(column, DbType(type)).Value = value;
                        }
                    }
                    */
                   
                        adapter.SelectCommand = command;
                        DataSet ds = new DataSet(dataSet);
                        adapter.Fill(ds, fill);

                        resultSTR = (DBData.ResultData(data.GetWizhomData("head"), "0", ds.GetXml())).GetString();
                   

                }
                catch (Exception e)
                {
                    Logger.log.Error("* DB Procedure Select Error : " + e.GetBaseException());

                    StringBuilder sb = new StringBuilder();
                    sb.Append("<exception>").Append(CommonConfig.getInstance().GetText("message", "error", "dbprocedure")).Append("</exception>");

                    resultSTR = (DBData.ResultData(data.GetWizhomData("head"), "1", sb.ToString())).GetString();
                }
                finally
                {
                    Close(conn, adapter);
                }

                return resultSTR;
            }


  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views116
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4474
    read more
  3. Oracle의 stored function/procedure에 대한 질문입니다.

    Date2011.09.06 By배나온천사 Views10032
    Read More
  4. Oracle에서 Cubrid 로 이관을 하려고 하는데 CMT말고 할수 있는 방법이 있을까요?

    Date2022.03.02 Bycuro Views81
    Read More
  5. Oracle->Cubrid 시 인덱스가 중복되었습니다. 라는 오류가 납니다.

    Date2016.03.07 By바퀴벌레 Views6
    Read More
  6. Oracle->Cubrid 시 cubrid Manager 툴에서

    Date2016.04.20 By블랙이 Views9510
    Read More
  7. Oracle 사용자 팁 문의

    Date2011.07.26 By비형여자 Views9689
    Read More
  8. Oracle to CUBRID Migration 방안

    Date2022.12.01 ByDBS Views98
    Read More
  9. Oracle dblink 관련 문의드립니다.

    Date2022.08.31 By서비서비 Views130
    Read More
  10. Oracle XMLAGG 함수의 유사 기능 질문드립니다.

    Date2019.01.14 Byjyheo Views704
    Read More
  11. Oracle SQL 을 Cubrid SQL 로 컨버젼 툴 문의

    Date2014.06.26 By홍가 Views22573
    Read More
  12. Oracle SQL to Cubrid SQL

    Date2014.07.30 By적막한밤 Views6159
    Read More
  13. Oracle REGEXT 함수 지원하나요?

    Date2013.03.25 Bycyber Views11273
    Read More
  14. Oracle ==> Cubrid 진행 중입니다.

    Date2020.04.08 ByPhilip Park Views142
    Read More
  15. Oracle -> Cubrid Migration 시 문제 문의드립니다.

    Date2017.05.25 By바보똥개 Views3857
    Read More
  16. Oracle --> Cubrid 쿼리 변경 질문입니다!

    Date2016.06.01 By잘하자! Views11075
    Read More
  17. Operation would have caused one or more unique constraint violations.

    Date2016.03.30 By곰팅팅이 Views9743
    Read More
  18. Openssl 취약점 패치 문의

    Date2020.12.11 By아스페리타스 Views150
    Read More
  19. On-line 상태에서 Volume 추가 안되는 문제

    Date2016.05.17 By브이찾기 Views7495
    Read More
  20. Oledb 문자열 값 가져오기 실패 문의입니다.

    Date2013.03.11 By콩이아부지 Views11088
    Read More
  21. OleDbCommand 를 사용하는데 다음 같은 에러가 발생합니다. 3번째

    Date2008.12.10 Byhades Views19126
    Read More
  22. OleDbCommand 를 사용하는데 다음 같은 에러가 발생합니다. 2번째..

    Date2008.12.10 Byhades Views20815
    Read More
Board Pagination Prev 1 ... 150 151 152 153 154 155 156 157 158 159 ... 200 Next
/ 200

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales