Background Image

FORUM

?

단축키

Prev이전 문서

Next다음 문서

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

델파이에서 큐브리드저장함수의 리턴값을받고싶은데 어떻게 하면 될가요.

ADOStoredProcedure컴포넌트를 이용해서 MS-SQL저장프로시저호출방법을 이용해봣는데 오류가발생합니다.

큐브리드에선 어떤 방법을 이용해야하는지 알고계시는분좀 알려주세요.

아래내용을 참고해서 했는데 오류가 발생합니다.


출처:http://niceit.tistory.com/42


01  procedure TMedia_Section.Insert;
02var
03  ads : TADOStoredProc;
04begin
05  ads := eyeDM.CreateADOStoredProc;
06  try
07    ads.ProcedureName := 'usp_mediasection_update';
08    ads.Parameters.CreateParameter('@RETURN_VALUE',ftInteger,pdReturnValue,0,0);   // <-- 반드시 첫번재 파라미터로 선언
09    ads.Parameters.CreateParameter('@SNo', ftInteger, pdInput, 40);
10    ads.Parameters.CreateParameter('@SCT', ftString, pdInput, 5'');
11    ads.Parameters.CreateParameter('@Section_Name', ftString, pdInput, 200'');
12    ads.Parameters.CreateParameter('@Priority', ftInteger, pdInput, 40);
13    ads.Parameters.CreateParameter('@Note', ftString, pdInput, 255'');
14    ads.Parameters.CreateParameter('@NCT', ftString, pdInput, 4'');
15    ads.Parameters.CreateParameter('@filterStr', ftString, pdInput, 100'');
16    ads.Parameters.CreateParameter('@regExpr', ftString, pdInput, 100'');
17 
18    ads.Parameters.ParamByName('@SNo').Value := FSNo;
19    ads.Parameters.ParamByName('@SCT').Value := FSCT;
20    ads.Parameters.ParamByName('@Section_Name').Value := FSection_Name;
21    ads.Parameters.ParamByName('@Priority').Value := FPriority;
22    ads.Parameters.ParamByName('@Note').Value := FNote;
23    ads.Parameters.ParamByName('@NCT').Value := FNCT;
24    ads.Parameters.ParamByName('@filterStr').Value := FFilterStr;
25    ads.Parameters.ParamByName('@regExpr').Value := FRegExpr;
26 
27    ads.ExecProc;
28 
29   FSNo := ads.Parameters.ParamByName('@RETURN_VALUE').value; // <-- 리턴 값을 받아온다
30 finally
31    ads.Free;
32  end;
33end;

  • ?
    cubebridge 2011.11.03 08:30

    안녕하세요.

    큐브리드에 관심을 가져 주셔서 감사합니다. 문의하신 내용에 대하여 빠른 시일 내에 확인하여 알려드리도록 하겠습니다.

  • ?
    seongjoon 2011.11.03 23:36

    CUBRID는 말씀하신 것과 같은 procedure을 지원하지 않습니다. 

    해당 로직이 정확히 어떤 동작을 하는지 알수는 없지만, 일반적인 preparestatement처럼 사용하는 것이라면 응용단에서 구현하셔서 사용하시면 됩니다.


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

    Date2020.04.09 Byadmin Views4438
    read more
  2. OleDbCommand 를 사용하는데 다음 같은 에러가 발생합니다.

    Date2008.12.10 Byhades Views22365
    Read More
  3. 서브쿼리에서 두개 이상의 데이터를 참조하려면.

    Date2009.03.03 By안지민 Views22320
    Read More
  4. OLEDB 연결 시 에러 발생

    Date2009.02.12 By늘푸른거북이 Views22252
    Read More
  5. cubrid bigint를 java로 가져오는데 문제가 있네요...

    Date2011.01.04 By반짝이 Views22137
    Read More
  6. JDBC ResultSet에 대한 문의

    Date2010.01.15 By강우 Views22135
    Read More
  7. 큐브리드는 mysql 의 varchar(255) 와 동일한 길이가 아니네요?

    Date2009.12.28 By초보 Views22102
    Read More
  8. 컴이 느려집니다.

    Date2013.02.10 By또랑 Views22067
    Read More
  9. 테이블목록과 필드목록을 조회하는 방법

    Date2016.11.21 By박경채 Views22038
    Read More
  10. 64 bit 포팅이란?

    Date2009.03.31 By초보대왕 Views22003
    Read More
  11. 쿼리 질의시 소수점 자리 수 처리 관련

    Date2014.02.14 Bydashbell Views21991
    Read More
  12. 데이터베이스 자동시작 설정 메뉴

    Date2009.01.19 By윤희서 Views21976
    Read More
  13. TO_CHAR 관련 질문입니다.

    Date2010.10.18 By노스 Views21947
    Read More
  14. 오류 좀 확인해주세요ㅜㅜ

    Date2009.12.04 By푸른잔디 Views21912
    Read More
  15. redhat 에서 cubrid 설치방법 문의

    Date2009.10.27 By레드코레아 Views21909
    Read More
  16. cubrid php module이 linux 32bit 에서는 컴파일이 안됩니다.

    Date2008.12.18 By들뿔 Views21847
    Read More
  17. Stored procedure execute error: 자바 저장프로시저 관련오류입니다.

    Date2011.11.01 Bywolf Views21788
    Read More
  18. 설치 및 삭제의 편의성 증대 요청

    Date2009.01.20 By윤희서 Views21699
    Read More
  19. 델파이 ADOStoredProcedure 컴포넌트에서 큐브리드저장함수의 리턴값을 받고싶습니다.

    Date2011.11.03 Bywolf Views21624
    Read More
  20. 4.0 beta CUBRID HA관련 문제...

    Date2011.05.18 By반짝이 Views21610
    Read More
  21. 게시판의 이전글 다음글 구현 쿼리질문

    Date2009.05.29 By김형일 Views21597
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 ... 200 Next
/ 200

Contact Cubrid

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