例如存取过程如下:
create proc usp_calc_educ
as
create table #t_educ(
unit char(10) not null,
edu char(10) not null,
r_number int null)
--处理过程省略
select * from #t_educ
在VB中应该如何调用呢?
...全文
745打赏收藏
如何用VB处理如下的存取过程?
例如存取过程如下: create proc usp_calc_educ as create table #t_educ( unit char(10) not null, edu char(10) not null, r_number int null) --处理过程省略 select * from #t_educ 在VB中应该如何调用呢?
Dim cmmusp As ADODB.Command
Set cmmusp = New ADODB.Command
With cmmusp
.ActiveConnection = cnnusp(声明的连接对象connection)
.CommandText = "usp_calc_educ
.CommandType = adCmdStoredProc
.Execute
End With
Set cmmusp = Nothing
ysb满意这个回答吗??