- 제 목 디비연동 및 값 사용에 대해서 질문좀 드리겠습니다.
- 작성자 안용태 등록일 2008-07-11/14:22 조회수 1146
dim strconnect, db
strconnect = "Provider=SQLOLEDB.1;Data Source=;Initial Catalog=krweb;User ID=willie;Password=w0905;Persist Security Info=True;Auto Translate=False;"
Set db = server.CreateObject ("adodb.connection")
db.open strconnect
SQL = "SELECT * FROM a_Jboard WHERE jb_canum=1 ORDER BY jb_idx DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open SQL,db
연결을 설정하면 에러메시지가 나오네요
recordset에서 Item cannot be found in the collection corresponding to the requested name or ordinal. 이렇게 못찾네요..
a_Jboard 테이블의 개체들을
<%rs(jb_title)%> 이런식으로 이용하려고 하는데 뭐가 잘 못된걸까요?
strconnect = "Provider=SQLOLEDB.1;Data Source=;Initial Catalog=krweb;User ID=willie;Password=w0905;Persist Security Info=True;Auto Translate=False;"
Set db = server.CreateObject ("adodb.connection")
db.open strconnect
SQL = "SELECT * FROM a_Jboard WHERE jb_canum=1 ORDER BY jb_idx DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open SQL,db
연결을 설정하면 에러메시지가 나오네요
recordset에서 Item cannot be found in the collection corresponding to the requested name or ordinal. 이렇게 못찾네요..
a_Jboard 테이블의 개체들을
<%rs(jb_title)%> 이런식으로 이용하려고 하는데 뭐가 잘 못된걸까요?