L
Luis
I'm using code similar to the following in an asp page to call a
stored procedure that does a select on a SQLServer 2000 table:
dim rs, SelectSql
SelectSql = "EXEC spSelectStuff @param = '" & ParamValue & "'"
set rs = conn.Execute(SelectSql)
-- do some stuff with rs --
rs.close : set rs = nothing...
The SelectStuff procedure:
CREATE PROCEDURE dbo.spSelectStuff
@param INT
AS
BEGIN
SET NOCOUNT ON
SELECT colX, colY, colZ
FROM tblTableX
WHERE ID = @param
END
GO
Everything works very well in my asp page. But I've been reading about
COM and now I'd like to take it one step further and move the code
from my asp page into an active-x dll.
How do I run the stored procedure from the dll?
stored procedure that does a select on a SQLServer 2000 table:
dim rs, SelectSql
SelectSql = "EXEC spSelectStuff @param = '" & ParamValue & "'"
set rs = conn.Execute(SelectSql)
-- do some stuff with rs --
rs.close : set rs = nothing...
The SelectStuff procedure:
CREATE PROCEDURE dbo.spSelectStuff
@param INT
AS
BEGIN
SET NOCOUNT ON
SELECT colX, colY, colZ
FROM tblTableX
WHERE ID = @param
END
GO
Everything works very well in my asp page. But I've been reading about
COM and now I'd like to take it one step further and move the code
from my asp page into an active-x dll.
How do I run the stored procedure from the dll?