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

    Date2020.04.09 Byadmin Views4455
    read more
  3. cubrid 6.6.0 제공 문의

    Date2010.01.25 By이종욱 Views7
    Read More
  4. 문자집합 변경에 대하여

    Date2010.01.25 By쭈난 Views11632
    Read More
  5. 엑셀 파일 임포트시 오류

    Date2010.01.25 By초보 Views23372
    Read More
  6. 문서 어떻게 다운받는 건가요?

    Date2010.01.25 By이종옥 Views9558
    Read More
  7. 큐브리드 방금 깔았는데요. 패스워드가

    Date2010.01.25 By이종옥 Views12187
    Read More
  8. 설치시 cubrid manager server start: fail 오류

    Date2010.01.24 By럭키늘보 Views16955
    Read More
  9. 데이터베이스 정지후 시작하니 로그파일이 사이즈가 0로 되며 시작이 안되는데?

    Date2010.01.24 By사람들 Views18
    Read More
  10. asp 레퍼런스가 있나요?

    Date2010.01.21 By바다왕자님 Views10357
    Read More
  11. 큐브리드 OLEDB 성능 문제 및 오류

    Date2010.01.18 By쭈난 Views14208
    Read More
  12. MySQL을 대체 할만한가요...?

    Date2010.01.17 By호비스 Views12503
    Read More
  13. 엄청난 DB 생성 소요 시간

    Date2010.01.16 By쭈난 Views10070
    Read More
  14. 패키지 분화가 가능할까요?

    Date2010.01.15 Byienfant Views9565
    Read More
  15. JDBC ResultSet에 대한 문의

    Date2010.01.15 By강우 Views22135
    Read More
  16. LOWER 오류가 왜 날까요?

    Date2010.01.15 By초보 Views10392
    Read More
  17. mysql의 rand() 함수 대체 문의

    Date2010.01.14 By초보 Views16018
    Read More
  18. DBCP사용중 CUBRID** 계열 클래스를 사용하려면?

    Date2010.01.14 By안지민 Views10270
    Read More
  19. mssql2005 --> cubrid 로 마이그레이션 오류 답변 부탁 드립니다.

    Date2010.01.14 ByPhilip Park Views24788
    Read More
  20. set type 에 빈값넣기

    Date2010.01.14 By초보 Views11840
    Read More
  21. ODBC 로 insert 가 안되네요 ㅠㅠ...

    Date2010.01.13 ByJinSniper Views11500
    Read More
  22. 리눅스서버상에 존재하는 CUBRID 데이터베이스를 CUBRID메니져클라이언트로 접속

    Date2010.01.13 By김대진 Views10581
    Read More
Board Pagination Prev 1 ... 170 171 172 173 174 175 176 177 178 179 ... 200 Next
/ 200

Contact Cubrid

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