Re: Trying to call to stored proc from ASP?
- From: "Mark Findlay" <mfindlay@xxxxxxxxxxxxx>
- Date: Mon, 8 May 2006 11:10:05 -0700
Hi Adrian,
If you are not passing any parameters to the stored procedure, you could just use:
sSQL = "sp_stored_procedure_name"
Hope this helps
Mark
"_adrian" <test @ test.com> wrote in message news:%234hlIorcGHA.1260@xxxxxxxxxxxxxxxxxxxxxxx
Hey all.. I've written a stored proc to execute a particular DTS package, and that all works. What I'm trying to do now is trigger that process from an ASP page... the following code *should* work I think.. and if so, then what else might be keeping me from success???? HELP!
(The driver login criteria has been changed to protect the innocent)
<%
dim dataConn, sSql, rs
set dataConn = Server.CreateObject("ADODB.Connection")
dataConn.Open "Driver={SQL Server};Server=hostservername;Database=DB;Uid=test;Pwd=test;"
sSql = "{call SendDirectory}"
Set rs = dataConn.Execute(sSql) 'execute sql call
%>
.
- Prev by Date: Support dates
- Next by Date: Re: SSIS as part of scheduled job fails
- Previous by thread: Support dates
- Next by thread: Re: Cannot export data to .dbf file
- Index(es):
Loading