Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

템프디비(##tablename)를 비베에서 뿌려주기

0 views
Skip to first unread message

강가리

unread,
Feb 28, 2005, 11:48:02 PM2/28/05
to
안녕하세요?

제목에서와 같이 tempdb를 사용하려구 스토어드 프로시져에 다음과 같이
만들었습니다.

CREATE PROCEDURE up_temp
AS
select b_sid into ##temp from tbl_base
GO

비베 어플리케이션 환경에서 이 tempdb에 접근해서 레코드를 가져오려구 합니다.
프로시져 실행
Call db_open
With Cmd
.CommandText = "exec up_temp"
Set .ActiveConnection = dbCon
rs.Open Cmd, , adOpenKeyset, adLockReadOnly
End With
Call db_close
레코드 가져오기
Call db_open
With Cmd
.CommandText = "select * from ##temp"
Set .ActiveConnection = dbCon
rs.Open Cmd, , adOpenKeyset, adLockReadOnly
End With

이렇게 rs로 받았을때 b_sid 값을 읽어내지 못하는 거 같습니다.

tempdb는 비베에서 읽어낼수 없는지 아니면 다른 방법이 있는지 알려주시기
바랍니다.
쿼리분석기에서는 잘 되었습니다. 답변 부탁드립니다.


0 new messages