게시판 본문 ASP, ASP.NET, IIS & Script - Read Only

800a01a8 에러
작성자: 궁금이
작성일시: 2005-08-10 17:43,  조회수: 1,481
<!--#include virtual = "/include/dbconn.asp"-->

<%
group_idx = Request("group_idx")
group_name = Request("group_name")


If Request("gmode") = "edit" Then '수정으로 넘어왔다면...
group_table_name = "board_group_table" '그룹테이블 명
group_idx = Request("group_idx2") '넘어온 idx 값
group_name = request("group_name") '최초 넘어온 그룹아이디
group_name2 = request("group_name2") ' 변경할 그룹아이디
gname = group_name&"_board" '변경하기전 테이블
gname2 = group_name2&"_board" '변경할 테이블





'그룹테이블에 같은 아이디가 있는지 여부를 확인한다.
sql = "select group_name from "&group_table_name&" where group_name = '"&group_name2&"' "
Set rs = db.Execute(sql)

If Not(rs.eof) Then '있다면 경고
Response.Write "<script>"&_
"alert('등록이 되어있는 그룹아이디 입니다.');"&_
"history.back()"&_
"</script>"&_
Response.End

'없다면 아이디 필드값을 넘어온 그룹이름으로 변경하고 그룹아이디와 관련된 테이블이 있는지 여부 판단하여 변경한다 ex)그룹아이디_board,그룹아이디_comment
Else

sql = "update "&group_table_name&" set group_name = '"&group_name2&"' where group_idx = " & group_idx
db.Execute(sql)

sql2 = "exec sp_tables"
set table_rs = db.execute(sql2)
table_rs.filter = "table_name = '"&gname&"'"

If Not(table_rs.bof or table_rs.eof) Then
sql3 = "EXEC sp_rename '"&gname&"', '"&gname2&"'"
db.execute(sql3)
End If

End If

Response.Write "<script>"&_
"alert('정상적으로 수정되었습니다.');"&_
"location.href='./group_list.asp'"&_
"</script>"&_
Response.End
End If
rs.close
Set rs = Nothing()
table_rs.close
Set table_rs = Nothing()
db.close()
Set db = Nothing()

%>



<html>
<head>
<title>그룹관리</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="/0_admin/css/style.css" rel="stylesheet" type="text/css">
<script>
function aa(form_aa)
{
if(!form_aa.group_name.value)
{
alert("그룹이름을 작성해 주세요.");
form_aa.group_name.focus();
return false;
}
return;
}
</script>
</head>
<body>
<table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#E1E1E1" bordercolordark="white">
<tr>
<td height="30" bgcolor="#F7F7F7"> <p align="center"><span style="font-size:9pt;"><font color="#404040">그룹관리</font></span></p></td>
</tr>
</table>


<form action="#" method="post" name="group_form" onsubmit="return aa(this)">
<input type="hidden" name="gmode" value="edit">
<input type="hidden" name="group_idx2" value="<%=group_idx%>">
<input type="hidden" name="group_name" value="<%=group_name%>">
<table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#E1E1E1" bordercolordark="white">
<tr>
<td height="30" bgcolor="#F7F7F7"> <p align="center"><span style="font-size:9pt;"><font color="#404040">그룹 아이디 : </font></span></p></td>
<td>  
<input name='group_name2' type='text' size='30' maxlength='20' class="solid" value="<%=group_name%>">  
<input type="submit" name="Submit2" value=" 수 정 " style="font-style:normal; font-size:12px; color:white; line-height:16px; background-color:#404040; border-width:1px; border-color:rgb(221,221,221); border-style:solid;">  
<input type="button" name="cencle" value=" 닫 기 " style="font-style:normal; font-size:12px; color:white; line-height:16px; background-color:#404040; border-width:1px; border-color:rgb(221,221,221); border-style:solid;" onclick="self.close();">
</td>
</tr>
</table><br>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td align="right"><input type="button" name="cencle" value=" 목 록 " style="font-style:normal; font-size:12px; color:white; line-height:16px; background-color:#404040; border-width:1px; border-color:rgb(221,221,221); border-style:solid;" onclick="location.href='./group_list.asp'"></td></tr>
</table>
</form>


에러 부분은요...
Microsoft VBScript 런타임 오류 error '800a01a8'

개체가 필요합니다.: 'rs'

/0_admin/board_manager/group_edit.asp, line 54

뭐가 문제 인지......

IP 주소: 61.33.79.10
전체 2,095 건의 게시물, 84 페이지로 구성된 ASP, ASP.NET, IIS & Script 게시판의 35 페이지입니다.
게시물
1,282

소켓

궁금이

2005-08-23 1,258
1,281

re: 소켓

송원석

2005-08-24 2,969
1,280

TABLE 태그와 HTC의 활용에서의 효과를 BODY에

김봉관

2005-08-20 2,894
1,279

re: TABLE 태그와 HTC의 활용에서의 효과를 BODY에

송원석

2005-08-22 3,103
1,278

파일명 구하기 [2]

궁금이

2005-08-19 1,034
1,277

ASP에서 메모리 hash 코딩이 가능 한가요?

sunny71

2005-08-17 3,002
1,276

re: ASP에서 메모리 hash 코딩이 가능 한가요?

송원석

2005-08-17 3,068
1,275

re: ASP에서 메모리 hash 코딩이 가능 한가요?

sunny71

2005-08-17 2,821
1,274

ASP에서 시스템 명령어를 실행시킬 수 있나요?

sunny71

2005-08-16 3,023
1,273

re: ASP에서 시스템 명령어를 실행시킬 수 있나요?

송원석

2005-08-16 3,037
1,272

re: ASP에서 시스템 명령어를 실행시킬 수 있나요?

sunny71

2005-08-16 2,839
1,271

zip파일 다운로드할때 다운현상~ [1]

김운용

2005-08-11 3,105
1,270

re: zip파일 다운로드할때 다운현상~ [1]

송원석

2005-08-11 3,004
1,269

압축에 대한 질문

궁금이

2005-08-11 1,008
1,268

re: 압축에 대한 질문

송원석

2005-08-11 2,791

800a01a8 에러

궁금이

2005-08-10 1,481
1,266

re: 800a01a8 에러

송원석

2005-08-11 3,030
1,265

.net + 한글입력

작은거인

2005-08-06 2,843
1,264

re: .net + 한글입력

송원석

2005-08-08 2,989
1,263

IIS와 cgi

궁금이

2005-08-04 1,059
1,262

re: IIS와 cgi

송원석

2005-08-04 2,880
1,261

조언 부탁드립니다.

궁금이

2005-08-04 980
1,260

re: 조언 부탁드립니다.

송원석

2005-08-04 3,334
1,259

EgoCube IE Analysis의 MSHTML 참조에 관하여...

영이

2005-08-03 1,232
1,258

re: EgoCube IE Analysis의 MSHTML 참조에 관하여...

송원석

2005-08-03 3,199