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줄정도 올려주시면 내용을 확인하는데 도움이 될 것 같습니다.

List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 SQLGate for CUBRID 영구 무료 라이선스 제공 file admin 2020.04.09 4288
516 오류 메세지 문의 Derived column names are not allowed for simple class specifications. 4 달이맘 2023.12.01 118
515 백업파일명에 접미어(_년월일) 삽입 할 수 있는 방법을 알고 싶습니다 1 gidoree 2022.10.05 118
514 큐브리드 마이그레이션 툴 사용법 문의 1 bchlim 2020.10.28 117
513 안드로이드 개발 중, 큐브리드 접속 시 VerifyError가 출력되며 에뮬레이터가 종료되어버립니다. 2 롤롤 2021.04.19 117
512 insert문에서 replace 1 yoo 2023.03.15 117
511 cubrid admin 질문 드립니다. 3 file 초코초코초 2023.03.06 116
510 mssql 마이그레이션 문의 1 file 둠둠둠 2021.08.31 116
509 큐브리드 jdbc 사용 문의드립니다. 2 coolbyj 2020.09.09 115
508 php-cubrid 연동 시 cubrid driver 인식 문의 2 file devlsy 2022.02.15 115
507 마이그레이션 툴킷 관련 질문드립니다. 1 csc0312 2020.12.17 115
506 cubrid 드라이버 설치 오류 13 file h2h2 2023.01.17 115
505 뷰를 이용한 조인쿼리 시스템 에러 문의 2 플레이어블 2023.01.19 114
504 SQL문에 대해 질문 드립니다.. 5 ohgeumjin 2020.05.29 114
503 Cubrid exp/imp 기능이 있나요? 1 Philip Park 2020.05.25 114
502 DB 데이터 이전 관련 3 별린 2023.11.20 114
501 db생성경로가 db테이블과 결과조회에 영향을 미치나요? 1 dfdfdd 2023.03.15 114
500 unloaddb internal system failure 문의 1 bchlim 2021.02.26 113
499 insert 관련 문의 드립니다. 2 화니 2019.01.28 113
498 큐브리드 11에서 Optane dc persistent memory app direct mode로 지원되나요? 1 몰라알수가없어 2021.02.08 113
497 문의사항 2(csql, java스토어드프로시저)개 3 go 2021.10.14 113
Board Pagination Prev 1 ... 169 170 171 172 173 174 175 176 177 178 ... 199 Next
/ 199

Contact Cubrid

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