ASP将Excel数据导入到SQLServer的实现代码

2019-04-01 18:06:22于丽

select case str
case "竹制品"
comtypem=0
case "竹机械"
comtypem=1
end select
end function
function getclassdname(str,tablename,lang)
If Not IsNumeric(id) Then Exit Function
set rs2=conn.execute ("select top 1 id from "& tablename &" where classname like '%"&str&"%'")
if not rs2.eof Then
If lang<>"" Then
If lang="cn" Then
getclassdname=getclassdname & rs2(0)
ElseIf lang="en" Then
getclassdname=getclassdname & rs2(0)
End If
End If
else
getclassdname=0
end if
rs2.close
End Function
%>
<table width="300" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<th bordercolor="#F1F3F8" bgcolor="#999999" class="t" scope="row"> </th>
</tr>
<tr>
<th class="t" scope="row">文件<% response.write (filenameshow) %>导入成功!</th>
</tr>
<tr>
<th class="t" scope="row"><a href="javascript:self.close()" class="t">关闭窗口</a></th>
</tr>
<tr>
<th class="t" scope="row"><a href="1122.asp" class="t">返回</a></th>
</tr>
</table>

您可能感兴趣的文章:

随机提取Access/SqlServer数据库中的10条记录的SQL语句如何在 Access 2003 和 Access 2002 中创建 DSN 的连接到 SQLServer 对链接表ACCESS转SQLSERVER数据库的注意事项Access转SqlServer的注意事项asp.net 数据库备份还原(sqlserver+access)SQL 随机查询 包括(sqlserver,mysql,access等)Excel导入Sqlserver数据库脚本ADO.NET 连接数据库字符串小结(Oracle、SqlServer、Access、ODBC)解析SQLServer获取Excel中所有Sheet的方法将ACCESS数据库迁移到SQLSERVER数据库两种方法(图文详解)将excel高效导入sqlserver的可行方法SQL SERVER 2008 64位系统无法导入ACCESS/EXCEL怎么办