存储过程名为:PRE_TO_REC~!
有经验的说说~!谢谢了~!
再解决不了,要走人咯~!哎,失败~!

解决方案 »

  1.   

    VB中调用带参数存储过程的实现 ---
    http://www.mypcera.com/softxue/new/vb/ba50.htm
      

  2.   

    http://www.csdn.net/develop/author/pam/book8_6.shtm
      

  3.   

    如果不要返回参数,可以直接写:ConnADO.Execute "PRE_TO_REC"
      

  4.   

    ************VB调用******************Private Sub Command1_Click()
    Dim cn As ADODB.Connection
    Dim rs As ADODB.Recordset
    Dim sql As String
    Dim comm As New ADODB.Command
    Set cn = New ADODB.Connection
    cn.Open "Driver={SQL Server};Server=LPY;Uid=sa;Pwd=;database=CY"
    comm.ActiveConnection = cn
    comm.CommandType = adCmdStoredProc
    comm.CommandText = "lpy"
    Set rs = comm.Execute(1, Text1.Text)
    Set MSHFlexGrid1.DataSource = rs
    End Sub************存储过程******************
    use CY
    go 
    if exists(select name from sysobjects where name= 'lpy' and type='p')
       drop procedure lpy
    go
    create procedure lpy 
    @money int
    as 
      select * from Cgongzi where 底薪>=@money
    order by 底薪 desc
    go
      

  5.   

    如果用数据环境设计器的话,可以直接调用:
    dim rt as long
    rt=dataenvironment1.cunchuguocheng(canshu1,canshu2...)