临时表问题-----在线等

titan913 2003-03-20 10:24:39
ls_a1=select x1,x2...xn into #temp from tabal_1
ls_a2=select a.*,b.y from table_1 a(nolock),#1 b(nolock) where a.z=b.z and ...

Set ftsqf = Server.CreateObject("ADODB.Recordset")
cmdTemp.CommandText = ls_a2
cmdTemp.CommandType = 1
cmdTemp.CommandTimeout = 0
Set cmdTemp.ActiveConnection = ELEC
ftsqf.Open cmdTemp, , 1, 1
为何提示“ODBC 驱动程序不支持所需的属性”

请给出一个相关的临时表例子,谢谢!

...全文
30 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
cpp2017 2003-03-21
  • 打赏
  • 举报
回复
例子:
strSQL ="select A.a1,A.a2 into #temp;select * from #temp"
rs.open strSQL,Conn,3,1]
set rs = rs.NextReocrdSet
if (not RS.EOF)
{
Response.write(rs(0).value);
}
vulcan 2003-03-21
  • 打赏
  • 举报
回复
ftsqf.Open cmdTemp,ELEC, 1,3
试试
titan913 2003-03-20
  • 打赏
  • 举报
回复
定义了,总共1个ADODB.Connection,2个ADODB.recordset
vulcan 2003-03-20
  • 打赏
  • 举报
回复
Set cmdTemp.ActiveConnection = ELEC

ELEC有没有定义?

28,408

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧