1. 未在本地计算机上注册“Microsoft.Ace.OleDb.12.0”提供程序。
a. 请您在 Project->属性->Build->目标CPU设置为X64位。
b. SQL导入excel数据:baidu下载AccessDatabaseEngine.rar
2. 查询MSSQL端口
方法一:
新建查询->执行: exec sys.sp_readerrorlog 0, 1, 'listening'
2017-12-28 13:56:56.750 服务器 Server is listening on [ 'any'49423].
2017-12-28 13:56:56.750 服务器 Server is listening on [ 'any'49423].
2017-12-28 13:56:56.770 服务器 Server is listening on [ ::149424].
2017-12-28 13:56:56.770 服务器 Server is listening on [ 127.0.0.149424].
2017-12-28 13:56:56.770 服务器 Dedicated admin connection support was established for listening locally on port 49424.
这里的49423,就是SQL的端口
方法二:
配置工具-SQL Server 配置管理器-网络配置-xxx的协议-TCP/IP-IPA11-TCP动态端口
3.类型不匹配
Microsoft VBScript 运行时错误 错误 '800a000d'
类型不匹配:原因,u_aid是bigint,值需加上双引号。
将 <% if u_aid<>0 then%> 中的 0 -> "0"
4.ASP获取MSSQL新增记录ID值
SELECT IDENT_CURRENT('countwebrecord')
亲,沙发正空着,还不快来抢?
我要评论 / 展开表单