|
TSQLConnection - TSQLStoredProc 로 간단 MS SQL 프로시저를 호출하려 합니다.
테스트용 프로시저는
CREATE PROC TestProc
AS
BEGIN
return 99
END
입니다.
TADOStroedProc 의 경우는 TADOConnection 연결하고, 프로시저명 설정하고, 파리미터 속성창을 열면 @RETURN_VALUE 가 나타나는데, TSQLStoredProc 는 보이질 않네요..
구글링 결과, RAD Studio 2007 버젼부터 수정되었다고 하고요.
ADOXXX 를 사용할 수 밖에 없는건가요?
환경 : Windows 7 32bit , RAD Studio 2010 Trial (No Update).
2010 메뉴얼에 보면
You can read the stored procedure result code for SQL Server and Sysbase if you change the ParamsCheck value to False. In this case, you need to take complete control over the parameters list and set them to match the stored procedure signature. The result code parameter must be set as the first in the list, and must be of type ptResult.
와 같이 언급되어 있더군요.
ParamsCheck 속성을 false 로 하고, 수작업으로 @RETURN_VALUE 를 파라미터 추가해 보아도 되질 않네요...
|