📄 dosql.asp
字号:
<!--#include file="security.asp"-->
<!--#include file="articleconn.asp"-->
<%if session("flag")>4 then
response.write "<br><p align=center>您的操作权限不够!</p>"
response.end
end if
%>
<body leftmargin="0" topmargin="0">
<style type=text/css>
body { background:#799AE1; margin:0px; font:9pt 宋体; }
table { border:0px; }
td { font:normal 12px 宋体; }
img { vertical-align:bottom; border:0px; }
a { font:normal 12px 宋体; color:#000000; text-decoration:none; }
a:hover { color:#428EFF;text-decoration:underline; }
.sec_menu { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
.menu_title { }
.menu_title span { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
.menu_title2 { }
.menu_title2 span { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
</style>
<br>
<table width=95% cellspacing=1 cellpadding=5 align=center>
<tr ><td><p><b>SOL语句执行操作</b></font></p>
<p>注意:本操作仅限高级、对SQL编程比较熟悉的用户,您可以直接输入sql执行语句。
在操作前请慎重考虑您的执行语句是否正确和完整,执行后不可恢复。</font></p></td></tr>
<tr ><td>
<%set rs=server.createobject("adodb.recordset")
if request("method") = "go" then
SQL_Statement=Request("SQL_Statement")
if SQL_Statement<>Empty then
On Error Resume Next
conn.Execute(SQL_Statement)
if err.number="0" then
response.write "<br><center><font color=red>SQL命令执行成功!</font>"
'response.redirect"dosql.asp?action=dosql"
else
response.write "<br><center>语句有问题,具体出错如下:<br><br><font color=red>"
response.write Err.Description
response.write "</font>"
err.clear
end if
end if
else
%>
<table cellspacing="3" cellpadding="0">
<tr><td width="100%" >
<Form Name=FormPst Method=Post Action="dosql.asp?action=dosql&method=go">
<FieldSet><Legend><请输入SQL语句</font></Legend>
<br>指令:<Input type="text" name="SQL_Statement" Size=80><br>
</font>
<p align=center><Input type="Submit" Value="送出"> <Input type="reset" Value="清除"><br>
</font><br></p>
</FieldSet>
</Form></td></tr></table>
</table>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -