I am trying to pass parameters through form ............... .....
Getting the following error.......... .
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
-------------------------------------------------------------------------------------------------------------
The error is in line.......... CmdUpdate.Comma ndType = adCmdStoredProc
---------------------------------------- Here is my code ------------------------------------------
--------------------------------- Here is my Stored Procedure --------------------------------------
Can you please help me
Thnx in Advance
Getting the following error.......... .
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
-------------------------------------------------------------------------------------------------------------
The error is in line.......... CmdUpdate.Comma ndType = adCmdStoredProc
---------------------------------------- Here is my code ------------------------------------------
Code:
Dim Camp_Name Dim CmdUpdate Camp_Name = Request.Form("x_CampaignName1") Set CmdUpdate = Server.CreateObject("ADODB.Command") CmdUpdate.ActiveConnection = conn CmdUpdate.CommandText = "SP_SMS" CmdUpdate.CommandType = adCmdStoredProc CmdUpdate.Parameters.Append CmdUpdate.CreateParameter("@Campaign_Name", adnvarchar, adParamInput,50,Camp_Name) CmdUpdate.Execute , , adExecuteNoRecords Set CmdUpdate = Nothing
Code:
CREATE PROCEDURE [dbo].[SP_SMS] AS BEGIN SET NOCOUNT ON; Declare @Campaign_Name nvarchar(50) Declare @DateCreated datetime INSERT INTO SMSMain (Campaign_Name,DateCreated) VALUES(@Campaign_Name,GETDATE()) END
Can you please help me
Thnx in Advance
Comment