导入数据|数据库
<%
'on error resume next
action=request("action")
IF action<>"install" THEN
%>
<center>
<form method="POST" action="install.asp?action=install" name="form1">
填写安装信息
SQL数据库管理员:<input name=StrUid value=sa>
SQL数据库密 码:<input name=StrSaPwd value=40104529>
SQL数据库地 址:<input name=StrServer value=localhost>
<input name="cmdok" type="submit" class="form1" value="开始安装..." >
</form>
</center>
<%
Else
StrUid=request("StrUid")
StrSaPwd=request("StrSaPwd")
StrServer=request("StrServer")
call CreateDB("info")
call RestoreDB("info","backup\1.bak")
call CreateUser("bin","85228522","info")
response.write "<center>
<input type='button' value='安装完成!' "
Conn.execute(StrCmd)
conn.close
set conn=nothing
End sub
%>
ASP安装SQL数据库和导入数据和建立用户
80酷酷网 80kuku.com