I hope that you guys can help me.
I get an error msg when I run my asp page. It does not seem to recognize my field that I return.
Here is my stored proc
CREATE PROCEDURE [dbo].[FACT_ins_Initiative]
@initiative_description varchar(250)
AS
insert into FACT_Initiative
(initiative_description)
values
(@initiative_description)
SELECT newid = SCOPE_IDENTITY()
GO
________________________________________________
and here is the ASP page......
set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = MM_FACT_STRING
cmd.CommandText = "dbo.FACT_ins_Initiative"
cmd.CommandType = 4
cmd.CommandTimeout = 0
cmd.Prepared = true
cmd.Parameters.Append cmd.CreateParameter("@RETURN_VALUE", 3, 4)
cmd.Parameters.Append cmd.CreateParameter("@initiative_description", 200, 1,250,"Yipee")
set RS = cmd.Execute
RS_numRows = 0
response.write "RV= " & RS("newid") <---- Does error out
Any suggestions are appreciated.
Steve
Steve
I get an error msg when I run my asp page. It does not seem to recognize my field that I return.
Here is my stored proc
CREATE PROCEDURE [dbo].[FACT_ins_Initiative]
@initiative_description varchar(250)
AS
insert into FACT_Initiative
(initiative_description)
values
(@initiative_description)
SELECT newid = SCOPE_IDENTITY()
GO
________________________________________________
and here is the ASP page......
set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = MM_FACT_STRING
cmd.CommandText = "dbo.FACT_ins_Initiative"
cmd.CommandType = 4
cmd.CommandTimeout = 0
cmd.Prepared = true
cmd.Parameters.Append cmd.CreateParameter("@RETURN_VALUE", 3, 4)
cmd.Parameters.Append cmd.CreateParameter("@initiative_description", 200, 1,250,"Yipee")
set RS = cmd.Execute
RS_numRows = 0
response.write "RV= " & RS("newid") <---- Does error out
Any suggestions are appreciated.
Steve
Steve