델파이에서 스토어드 프로시져를 연결해서 ms-sql의 storedprocedure를 실행하는데
아래와 같은 에러내용이 나옵니다. 제발 알려주세요....
직접 쿼리 어널러이즈에서 실행시키면 스토어드 프로시져가 잘 돌아 가거든요?
근데 왜 델파이에서 연결해서 실행시키면 아래 메세지가 나올까요??????
-------------------------------------------------------------------------------
에러내용
-------------------------------------------------------------------------------
Project p_delrst.exe raised exception class EDBEngineError with message 'General SQL error.
HeTerogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the
connection. This ensures consistent
quㅁ놘ㅁ. Process stopped. Use Step or Run to continue.
-------------------------------------------------------------------------------
storedprocedure내용
-------------------------------------------------------------------------------
CREATE PROC sp_rst_Insert
@cust_code varchar(8)
, @s_date varchar(8)
, @e_date varchar(8)
AS
insert into rst_t (cust_code, sgnl_code, actn_date, actn_time, actn_day, proc_code, proc_date, proc_time, user_code, Chuldo_code, chuldo_cont, sgnl_tag, d_tag, ln_num, ip_addr, com_port )
select cust_code as cust_code,
sgnl_code as sgnl_code,
actn_date as actn_date,
actn_time as actn_time,
actn_day as actn_day,
proc_code as proc_code,
proc_date as proc_date,
proc_time as proc_time,
user_code as user_code,
chuldo_code as chuldo_code,
chuldo_cont as chuldo_cont,
sgnl_tag as sgnl_tag,
d_tag as d_tag,
ln_num as ln_num,
ip_addr as ip_addr,
com_port as com_port
from
[gsserver2].[gs].[dbo].[rst_t]
where
cust_code = @cust_code and
actn_date >= @s_date and
actn_date <= @e_date
---------------------------------------------------------------------------------
> 델파이에서 스토어드 프로시져를 연결해서 ms-sql의 storedprocedure를 실행하는데
> 아래와 같은 에러내용이 나옵니다. 제발 알려주세요....
> 직접 쿼리 어널러이즈에서 실행시키면 스토어드 프로시져가 잘 돌아 가거든요?
> 근데 왜 델파이에서 연결해서 실행시키면 아래 메세지가 나올까요??????
> -------------------------------------------------------------------------------
> 에러내용
> -------------------------------------------------------------------------------
> Project p_delrst.exe raised exception class EDBEngineError with message 'General SQL error.
> HeTerogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the
> connection. This ensures consistent
> quㅁ놘ㅁ. Process stopped. Use Step or Run to continue.
> -------------------------------------------------------------------------------
> storedprocedure내용
> -------------------------------------------------------------------------------
> CREATE PROC sp_rst_Insert
> @cust_code varchar(8)
> , @s_date varchar(8)
> , @e_date varchar(8)
> AS
> insert into rst_t (cust_code, sgnl_code, actn_date, actn_time, actn_day, proc_code, proc_date, proc_time, user_code, Chuldo_code, chuldo_cont, sgnl_tag, d_tag, ln_num, ip_addr, com_port )
> select cust_code as cust_code,
> sgnl_code as sgnl_code,
> actn_date as actn_date,
> actn_time as actn_time,
> actn_day as actn_day,
> proc_code as proc_code,
> proc_date as proc_date,
> proc_time as proc_time,
> user_code as user_code,
> chuldo_code as chuldo_code,
> chuldo_cont as chuldo_cont,
> sgnl_tag as sgnl_tag,
> d_tag as d_tag,
> ln_num as ln_num,
> ip_addr as ip_addr,
> com_port as com_port
> from
> [gsserver2].[gs].[dbo].[rst_t]
> where
> cust_code = @cust_code and
> actn_date >= @s_date and
> actn_date <= @e_date
> ---------------------------------------------------------------------------------
>
초보지만 혹지 위에서 변수로 잡아 놓은 것들을
델파이의 스토어드 프로시저의 파라미터를 확인해서 타입을 정해 주었는지 .....?
---저 에러 메세지 캡쳐 어떻게 한거에요.......신기하군요.