疯了,VB中说SQL语法了
dim no as integer...

解决方案 »

  1.   

    declare @no int,@name char(10), @address char(40),@age int ,@buf char这些声明是在存储过程中声明的,不用放到程序中为程序中存储过程的调用准备参数就可以了,如:Adocm.Execute  select_student_1 ,name , address, @age output
      

  2.   

    根据大家的建议我又
    加了一个过程,请再看看那有问题?
    CREATE PROCEDURE [test2]@buf char(128) outputas
    declare
           @no int,
           @name char(10),
           @address char(40),
           @age int     
            Execute [select_student_1]  @no = 1  ,@name output , @age output , @address output
            begin
                select @buf = 'new man:' + @name + @age + @address
            print @buf
            
            End
    GO