使用方法 : 保存为 asptools.hta 然后再运行
代码如下 :
<! doctype html public "-// w3c // dtd xhtml 1.0 transitional // en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-
Transitional.dtd ">
<html xmlns = "http://www.w3.org/1999/xhtml">
<헤드>
<meta http-equiv = "content-type"content = "text /html; charset = gb2312" />
<meta name = "author"content = "柳永法" />
<title> asp p </title>
<스타일> 바디 {font-size : 12px} </style>
<HTA : 응용 프로그램
id = "asptools"
ApplicationName = "asptools"
스크롤 = "아니요"
SingleInstance = "예"
Windowstate = "정상"
>
</head>
<body>
<div>
<input type = "file"id = "txtFile"onchange = "createTablesElect ( 'Access')"style = "display : none" />
IP : <입력 유형 = "text"name = "ip"size = "16"style = "테두리 : 1px solid green"value = "./ sql2005" />
登录名 : <입력 유형 = "text"name = "userId"size = "10"Style = "테두리 : 1px solid green"value = "sa" />
密码 : <입력 유형 = "비밀번호"이름 = "pwd"size = "10"style = "테두리 : 1px solid green"value = "yongfa365" />
数据库名 : <입력 유형 = "text"name = "dbname"size = "10"style = "테두리 : 1px solid green"value = "hb605-8-8" /> <br />
<입력 이름 = "button2"type = "button"id = "button2"style = "테두리 : 1px solid green"onclick = "createTableseLect
( 'mssql') "value ="连接 sql 数据库 " />
<입력 유형 = "button"id = "btnfromfile"onclick = "txtFile.click ()"value = "连接 ac
녹색 " />
<span id = "테이블"> </span>
<hr />
模板 :
<입력 유형 = "text"id = "opt"value = ""size = "40" />
<select size = "1"id = "fz"onchange = "opt.value = this.value"> </select>
<입력 이름 = "button"type = "button"id = "button"onclick = "c ()"value = "转换"style = "테두리 : 1px solid green">
<hr />
<textRea id = "s"rows = "10"cols = "80"> </textArea>
<input type = "button"onclick = "madesql ()"value = "生成 sql 语句"style = "테두리 : 1px solid green" />
<textRea id = "d"rows = "10"cols = "80"> </textArea>
</div>
<pre id = "sqldemo"style = "display : none"intro = "通用建表结构">
-通用建表结构
테이블 만들기 [dbo]. [tableName] (
[ID] int 1 차 키 아이덴티티 (1,1), -Id, 主键, 自动号
[txttitle] Varchar (255),-标题
[txtContent] 텍스트-内容
[puttime] dateTime default (getDate ()),-提交时间
[moditime] datetime default (getDate ()),-修改时间
[HITS] int 기본값 (0),-点击数
[플래그] int default (0),-标识
[ORDERID] int 기본값 (0),-排序号
))
</pre>
<pre id = "sdemo"style = "display : 없음"intro = "初始源测试数据">