Background Image

FORUM

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

단축키

Prev이전 문서

Next다음 문서

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

* 이런 형태로 프로시져를 호출을 하여도 같은 에러가 나네요..
* 해결할 수 있는 방법이 없을까요?

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') aaa 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;
                    }
                }
                */

                Logger.log.Debug("======== call ExecuteNonQuery ===========");

                conn.Open();
                command.ExecuteNonQuery();

                StringBuilder sb = new StringBuilder();
                sb.Append("<record>1</record>");

                resultSTR = (DBData.ResultData(data.GetWizhomData("head"), "0", sb.ToString())).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;
        }

  • ?
    남재우 2008.12.10 21:28
    OLEDB 설정시 등록한 포트번호가 있을 것입니다. 이를 기준으로 하여 %CUBRID%logbrokersql_log 아래에서 포트가 30000 번일 경우는 query_editor_*.sql.log, 33000번일 경우에는 broker1_*.sql.log 중 가장 최근에 쓰여진 화일을 열어 가장 끝 부분을 보시면 수행하신 질의가 보이실 것입니다. 그부분을 앞뒤로 10줄정도 올려주시면 내용을 확인하는데 도움이 될 것 같습니다.
  • ?
    flypig 2008.12.11 03:07


    질의 편집기를 이용하시면 문제 없다는 것은 정상적으로 SP를 작성하시고 등록이 되었다는 것을 의미합니다.
    위의 소스를 보니 몇 가지 문제가 있어 보입니다.
    1. "select sp_ins_member_info('20081210091616890', '고상주', '1111112222222', '02-111-1111', '010-111-1111', '', '', 'sangju', '111') aaa from DB_CLASS where rownum = 1"; 를 from db_root 로 변경해 주시기 바랍니다.
    -> "select sp_ins_member_info('20081210091616890', '고상주', '1111112222222', '02-111-1111', '010-111-1111', '', '', 'sangju', '111')  from db_root;
    2. command.CommandType = CommandType.StoredProcedure; 에서 StoredProcedure를 cmdText로 변경해 주시기 바랍니다.
    큐브리드는 다른 DB에서 사용하는 procedure호출하는 방식과 다르게 위에서 처럼 그냥 SQL문을 통해서 실행되기 때문에 StoredProcedure로 명시하시면 실행이
    되지 않을 것입니다.

    위처럼 변경하시고 수행해 보시고 안되시면 다시 연락 주시기 바랍니다.


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

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

    Date2020.04.09 Byadmin Views4476
    read more
  3. asp.net 의 oledb 연동

    Date2009.01.04 Bywebdoors Views38313
    Read More
  4. Cubrid2008 관련 문의 입니다.

    Date2008.12.31 By김트리 Views16898
    Read More
  5. 객체 컬럼에 데이터 인서트 하는 방법 문의

    Date2008.12.29 ByDevin Views14987
    Read More
  6. 64BIT 설치시 오류

    Date2008.12.26 By씩~~ Views41558
    Read More
  7. PHP 버젼에 따라.. 값을 인식하지 못하는 현상(?)

    Date2008.12.24 By레드오리 Views17693
    Read More
  8. 큐브리드 포트에 대해서...

    Date2008.12.23 By레드오리 Views17653
    Read More
  9. php에서 insert 값이 안들어가는 경우는 뭘까요?

    Date2008.12.20 By레드오리 Views21052
    Read More
  10. php에서 cubrid_connect 이부분이 조금..

    Date2008.12.19 By레드오리 Views18095
    Read More
  11. csql에서 해당 구문이 작동하지 않네요..

    Date2008.12.19 By레드오리 Views15573
    Read More
  12. 아래 질문에 대해서...질의창 실행 안되는 문제

    Date2008.12.19 By초리 Views17473
    Read More
  13. 큐브리드 클라이언트 에서 질의 열기가 안됩니다

    Date2008.12.19 By초리 Views19354
    Read More
  14. cubrid php module이 linux 32bit 에서는 컴파일이 안됩니다.

    Date2008.12.18 By들뿔 Views21847
    Read More
  15. class명이 길때 나는 버그입니다.

    Date2008.12.17 By들뿔 Views17325
    Read More
  16. 인코딩 관련

    Date2008.12.17 Bysong Views21518
    Read More
  17. 질의 자동화 주기 문의 드립니다.

    Date2008.12.17 By이석희 Views13651
    Read More
  18. convert_password.exe가 실행이 안됩니다.

    Date2008.12.16 By들뿔 Views21541
    Read More
  19. 2008버전으로 install하고 나서 매니져 접속이 안됩니다.

    Date2008.12.13 By들뿔 Views19446
    Read More
  20. 데이터바인딩?

    Date2008.12.12 By우페 Views18025
    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 ... 192 193 194 195 196 197 198 199 200 201 Next
/ 201

Contact Cubrid

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