Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP and Stored procedure

Status
Not open for further replies.

vsilver

Programmer
Mar 13, 2003
5
0
0
NG
how do i call stored procedures in ASP using the COM+ model
 
Just like any other command text SQL string. You can also call it via the ADODB.Command object.
 
You could do it like this, for instance:

Code:
Set db = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")

db.Open DSN, USER, PWD
Set rs = db.Execute("sp_myStoredProcedure")

Palooka
 
Or you could look at the FAQ list for the this forum as that subject is discussed in length with sample code.

FAQ == reuse == good == !REDUNDANT == "reduce forum noise"

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top