?
Solved

Does the number of parameter in a stored procedure affect?

Posted on 2011-09-07
2
Medium Priority
?
227 Views
Last Modified: 2012-05-12
First I called the Stored Procedure:
 res = procs.ProcessARWD(msg.OrderRef, msg.Lgv, msg.DestinationLocation, msg.DestinationLevel, true, resultCode, resultMsg, resultTimeStamp).ToList<EF.ProcessMasterMsg_Result>();

Second
I am creating a message by using type table in SQL Server 2008.
Type table
declare @ReturnValues                              AS  dbo.[tvpReturnValue]

INSERT INTO @ReturnValues
                  (
                        MessageType,      MissionRef,                              Priority,
                        Row,                  ProductType,                        LoadAidType,
                        LgvSearchEnable,LevelSearchEnabled,                  SideSearchEnabled,                  PressureGaugeEnabled,
                        Stability,                                                      TrackingID,                              
                        LPN,                  RFID,                                    OrderNumber,
                        PickLocation,      PickPosition,                        PickLevel,                              PickHeight,                        PickDistance,
                        DropLocation,                                                DropPosition,                        
                        DropLevel,            DropHeight,                              DropDistance,
                        WeightPalletsInLocation , NumPallets, SequenceNumber, WrappedStatus, ShipmentNr
                  )      
                  VALUES
                  (
                        'DPOS',                  @TaskNumber,                        10,
                        @Row,                  1,                                          ISNULL(@palletTypeFromDB,1),                        
                        1,                        1,                                          1,                                          1,
                        ISNULL(@stabilityStatusFromDB, 1),                  NULL,
                        @Lpn,                  @graiCode,                              NULL,
                        NULL,                  0,                                          0,                                          0,                                    0,
                        @NextStorageOpPointName,                              @positionLgvCs,            
                        @LevelLgvCs,      @Height,                              0,
                        @TotalWeight      , @NumPallets      , @SequenceNumber      , @wrappedStatus      , @ShipmentNumber
                  )

Then, I return the values with:select *
      from @ReturnValues
      
END TRY
 

The ReturnValues should be now in res but I am not getting all of them.
@TotalWeight      and @NumPallets are the main ones that I need.

any ideas will be good.

Thank you.



0
Comment
Question by:iscivanomar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Navneet earned 2000 total points
ID: 36500810
Hi!

Is your parameter type OUTPUT
check this
http://msdn.microsoft.com/en-us/library/ms187004.aspx

Thanks!
0
 

Author Closing Comment

by:iscivanomar
ID: 36602154
Sorry for not getting back to you soon, I was in vacation. and thank you for your answer. It help me to find the error that I was getting.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question