当前位置:编程学习 > asp >>

ASP做查询分析器(Query Analyzer)(III)

sqlultimate.asp--Part C
<html>
<head>
<title>BuildSQL</title>
<!--#include file="DataTypeLib.asp" -->    
<script language="JavaScript1.2" type="text/javascript">
<!--
    function addField(field)     {
    strField = document.sqlForm.strSQL.value;
    strField = strField + " [" + field + "]";
    if(confirm("Add " + field + "?"))
        document.sqlForm.strSQL.value = strField;        
    }
//-->
</script>
</head>
<body bgcolor="#f4e1d2">
<%
If request("createTable") <> "Create Table" Then
     response.write("<form name=""sqlForm"" action=""sqlultimate.asp"" method=""POST"">" & vbCrLf)
End If
If request("createTable") = "Create Table" Then
     call createTable()
ElseIf strServer = ""    Or request("showConnectdb") = "Connect" Then    
%>
<h2 align=center>Log into Database Server</h2>
     <p align=center>
       Server:        <input name="sqlserver" type="text" value="<%= strServer %>"><br>
       User Name: <input name="log_in" type="text" value="<%= strUserID %>"><br>
       Password:     <input name="user_password" type="password" value="<%= strPassword %>"><br><br>
补充:asp教程,高级应用
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,