Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

How to call a stored procedure using asp classic?

$
0
0

I am using sql server and asp classic, and am currently calling queries like this:

newHireSQL = "select * from NewHire where Archived = 0 order by HireID desc"
    Set rsGetHireID = Server.CreateObject("ADODB.Recordset")
    rsGetHireID.Open newHireSQL,ConnectionString,adOpenStatic
    NumOfHireID = rsGetHireID.RecordCount




But instead of having the query statement here, I want to call a stored procedure calleddbo.sp_selectNewHireSQL. How can I do that?

Thanks


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>