Re: number of parameters in stored procedure

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Rick Sawtell (quickening_at_msn.com)
Date: 01/11/05


Date: Tue, 11 Jan 2005 13:52:12 -0600


"JIM.H." <JIMH@discussions.microsoft.com> wrote in message
news:CD0A7CF4-2C24-45EE-83DD-EAD09D4DAFDE@microsoft.com...
> Hello,
> I am using a stored procedure with 28 input parameter to insert to a SQL
> table. It gives too many argument error when I compile my asp.net
> application.
>
> My asp.net application accepts data entry about employees and tries to
> import is into a table by calling a stored procedure. If there is a
> restriction in number of parameters, what else could I use to get data
> from
> user and import into a table?
> Thanks,
> Jim.
>

How are you creating/calling the sproc in ASP.NET? Are you instantiating a
command object and 28 parameter objects, or are you simple calling a sproc
with a connection.Execute command or something else?

Check your commas etc. ;-)

Rick Sawtell
MCT, MCSD, MCDBA



Relevant Pages

  • Im so confused
    ... normally from Query Analyzer rather than calling it from any other code so I ... > system stored procedure sp_grantdbaccess checks that there is not an ... > there is not an enclosing transaction. ... Here's my sproc and the ...
    (microsoft.public.sqlserver.security)
  • RE: SQL Agent job hangs during execution
    ... can you run the stored procedure manually without problems? ... objects isnt hearing back from the sproc to let it know it finished. ... > The job uses MDAC and accesses SQL through ADODB. ... A command object is calling a ...
    (microsoft.public.sqlserver.server)
  • Re: Getting the results set from sp_helpuser
    ... Calling a stored procedure in ADO.NET, you have to add parameters to the ... command object. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Retrieving SPROC return value using SPT
    ... You cannot use the parenthesis in calling the stored procedure. ... Your parameter must be declared as OUTPUT inside your stored procedure. ... It still not updated after return from> sproc. ... The "@" seems to be sufficient to tell> SQL>> that it's an output parameter. ...
    (microsoft.public.fox.vfp.queries-sql)
  • Re: SqlDataAdapter - can it be (re)used for 2 SELECT statements
    ... dataadapter for 2 different calls to the same sproc, ... the stored procedure parameter ... //create our DataAdapter object and use it to fill the dataset object ...
    (microsoft.public.dotnet.framework.aspnet)