PDA

View Full Version : Tao Record set tu Store Procedure



Bacmaon
15-11-2004, 16:43
Các Bác ơi! mình muốn tạo 1 record set từ một Store Procedure thì làm có được không vậy?

mel
16-11-2004, 10:46
Dim Rs as ADODB.RecordSet
Set Rs=New ADODB.Recordset
Dim Cmd as ADODB.Command
Set Cmd=New ADODB.Command

With Cmd
.ActiveConection=....
....
.CommandText="Tên Store procedure"
....
Set Rs= .Excute
End With