Solved

Does the number of parameter in a stored procedure affect?

Posted on 2011-09-07
2
206 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
2 Comments
 
LVL 15

Accepted Solution

by:
navneethegde earned 500 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In this article I will describe the Backup & Restore 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.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now