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 Views118
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4475
    read more
  3. tomcat7 + cubrid

    Date2012.07.27 By깽즈야 Views91099
    Read More
  4. 원격접속이 안되네요?????????

    Date2013.07.23 ByChris Views89531
    Read More
  5. 현재 연결은 원격 호스트에 의해 강제로 끊겼습니다

    Date2013.05.29 By바람바람 Views84902
    Read More
  6. CUBRID 7.3 + zeroboard XE 관리자 로그인 에러

    Date2009.01.17 By윤희서 Views83643
    Read More
  7. cub_master: Cannot bind local address... aborting.... Address already in use

    Date2008.11.28 By박상현 Views83567
    Read More
  8. 큐브리드 다운로더 오류 발생

    Date2008.11.22 By차오이 Views78500
    Read More
  9. zeroboard XE 설치시 'database connect fail' error

    Date2009.01.16 By윤희서 Views78165
    Read More
  10. Image 데이터타입 사용방법

    Date2008.11.25 ByAD Views73851
    Read More
  11. clob 문의

    Date2012.11.29 By김해영 Views73010
    Read More
  12. linux server 환경에서 php 버전은 어떤걸로 선택해야하는지.

    Date2008.11.30 By거기 Views66367
    Read More
  13. 델파이에서는 어떻게 사용할수 있을까요?

    Date2008.11.29 By이상원 Views65569
    Read More
  14. if exists 조건 처리문?

    Date2013.03.06 By콩이아부지 Views63612
    Read More
  15. update 쿼리를 이용한 시리얼 수정에 관하여

    Date2008.11.27 By인경수 Views63455
    Read More
  16. 큐브리드 2008 설치시 윈도우 서비스에 등록되지 않습니다.

    Date2008.11.22 By진이 Views63171
    Read More
  17. CUBRID 7.3 + zeroboard XE 관리자 로그인 에러

    Date2009.01.17 By윤희서 Views62131
    Read More
  18. 큐브리드 maven repository 관련 문의

    Date2013.04.30 ByStoneHouse Views61469
    Read More
  19. 메니저에서 접속 안되는 오류

    Date2013.08.16 By유나인 Views61069
    Read More
  20. .NET DB 제어를 위한 방법.

    Date2008.11.23 By우페 Views60879
    Read More
  21. JDK가 두개 설치된 경우 선택적으로 JDK를 설정 할 수 있는 방법은 없는지요

    Date2008.11.28 ByGoFly Views60616
    Read More
  22. 데이터 이관시 소유자 변경 가능한가요???

    Date2013.08.08 By델몬트 Views60070
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 200 Next
/ 200

Contact Cubrid

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