Background Image

FORUM

조회 수 20806 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

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

// 큐브리드의 질의편집기에서는 잘 실행이 됩니다.
//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;
        }

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

  1. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4285
    read more
  2. 대량 데이터 입력 방법 중에서요..

    Date2008.12.09 By우페 Views18709
    Read More
  3. 인코딩 문의.

    Date2008.12.09 By우페 Views19215
    Read More
  4. OleDbCommand 를 사용하는데 다음 같은 에러가 발생합니다.

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

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

    Date2008.12.10 Byhades Views19124
    Read More
  7. 데이터바인딩?

    Date2008.12.12 By우페 Views18023
    Read More
  8. 2008버전으로 install하고 나서 매니져 접속이 안됩니다.

    Date2008.12.13 By들뿔 Views19443
    Read More
  9. convert_password.exe가 실행이 안됩니다.

    Date2008.12.16 By들뿔 Views21538
    Read More
  10. 질의 자동화 주기 문의 드립니다.

    Date2008.12.17 By이석희 Views13645
    Read More
  11. 인코딩 관련

    Date2008.12.17 Bysong Views21515
    Read More
  12. class명이 길때 나는 버그입니다.

    Date2008.12.17 By들뿔 Views17324
    Read More
  13. cubrid php module이 linux 32bit 에서는 컴파일이 안됩니다.

    Date2008.12.18 By들뿔 Views21844
    Read More
  14. 큐브리드 클라이언트 에서 질의 열기가 안됩니다

    Date2008.12.19 By초리 Views19353
    Read More
  15. 아래 질문에 대해서...질의창 실행 안되는 문제

    Date2008.12.19 By초리 Views17470
    Read More
  16. csql에서 해당 구문이 작동하지 않네요..

    Date2008.12.19 By레드오리 Views15570
    Read More
  17. php에서 cubrid_connect 이부분이 조금..

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

    Date2008.12.20 By레드오리 Views21046
    Read More
  19. 큐브리드 포트에 대해서...

    Date2008.12.23 By레드오리 Views17650
    Read More
  20. PHP 버젼에 따라.. 값을 인식하지 못하는 현상(?)

    Date2008.12.24 By레드오리 Views17689
    Read More
  21. 64BIT 설치시 오류

    Date2008.12.26 By씩~~ Views41550
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 199 Next
/ 199

Contact Cubrid

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