astrodestino
IS-IT--Management
Hi
I got this stored procedure (my first time using it...
I normally call the recordset like this:
How can I call the stored procedure I've created?
Thank you very much!
I got this stored procedure (my first time using it...
Code:
create procedure usp_ReturnData as
select *
from efemerides
where mes = month(getdate())
and dia = day(getdate())
and anofecha = year(getdate())
go
I normally call the recordset like this:
Code:
sqlstm="SELECT * FROM efemerides where diafecha="&varDay&" and mesfecha=" &varMonth&" and anofecha="&varYear'&"'"
set efemerides = Server.CreateObject("ADODB.Recordset")
efemerides.ActiveConnection = MM_efemeridesyoroscopo_STRING
efemerides.Source = sqlstm
efemerides.CursorType = 0
efemerides.CursorLocation = 2
efemerides.LockType = 3
efemerides.Open()
efemerides_numRows = 0
How can I call the stored procedure I've created?
Thank you very much!