当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 我写一个东东,要把文件用十六进制的方式显示出来,还要对指定的地址修改。如修改00388081ch:这个地址。怎样用delphi实现? ......
    摘要: 用c#如何写一个c/s的上传文件, 文件可能是任何类型的。 ......


最简单存储过程

错误:  
  Microsoft   OLE   DB   Provider   for   SQL   Server   错误   80040e10    
   
  过程   sp_new_AllRecord   需要参数   @middleid,但未提供该参数。    
   
  ----------存储过程目的统计记录总数------------------  
  ALTER     procedure   sp_new_AllRecord  
   
  @middleid   nvarchar(10)  
  As    
   
  select   count(id)   As   allid   from   allenterprise   where   left(newtype,3)=@middleid  
   
  在Asp页面中引用:  
      sub   AllRecord(middleid)  
    set   cmd=server.CreateObject("adodb.command")  
    cmd.ActiveConnection=conn  
    cmd.commandtext="sp_new_AllRecord"  
  set   ttt=cmd.execute  
  if   not   ttt.eof     then  
      response.write   ttt("allid")  
      end   if  
      ttt.close  
      set   cmd=nothing  
      end   sub  
      conn.close  
      set   conn=nothing  
 

NO.1   作者: CrazyFor

TRY:  
   
    sub   AllRecord(middleid)  
    set   cmd=server.CreateObject("adodb.command")  
    cmd.ActiveConnection=conn  
    cmd.commandtext="sp_new_AllRecord   传入参数"  
  set   ttt=cmd.execute  
  if   not   ttt.eof     then  
      response.write   ttt("allid")  
      end   if  
      ttt.close  
      set   cmd=nothing  
      end   sub  
      conn.close  
      set   conn=nothing

NO.2   作者: tj_dns

缺少输入参数:  
  cmd.commandtext="sp_new_AllRecord   001   "

NO.3   作者: sxh401

@middleid,你的存储过程定义了一个参数,你没有传参数当然不行,你把参数传上去就行了  
  至于参数怎么传,你自己查一下asp的帮助,看看comman怎么传  
  好像是command.parameters.add("@middleid",参数值,参数类型)  
  我记得不是很请楚了


 ·谁可以提供一个论坛的程序    »显示摘要«
    摘要: 一个论坛的全部代码,像什么贴图的什么的! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE