How to find what values were passed onto a store procedure at the last run

my web application is calling a store procedure but not returning the desired results in the ASP.net page
when i execute the store procedure in sql server by providing the same values i get the desired result
is there any way i could tell what values were passed onto the store procedure when it was called by the web page
i am using sql server 2012 express 

To add to the Profiler suggestion, you can also capture this information using Extended Events.  Below is a script example to capture RPC and batch completed events.  This can be done from the SSMS Object Explorer as well:
--create ExtendedEvent session
CREATE EVENT SESSION [ParameterTrace] ON SERVER
ADD EVENT sqlserver.rpc_completed(
ACTION(sqlserver.sql_text)),
ADD EVENT sqlserver.sql_batch_completed(
ACTION(sqlserver.sql_text))
ADD TARGET package0.event_file(SET filename=N'C:\Temp\ParameterTrace.xel')
WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=30 SECONDS,MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=OFF,STARTUP_STATE=OFF)
GO
--start session
ALTER EVENT SESSION [ParameterTrace] ON SERVER
STATE = START;
GO
--stop session
ALTER EVENT SESSION [ParameterTrace] ON SERVER
STATE = STOP;
--query trace data
SELECT CAST(event_data AS XML) AS event_data
FROM sys.fn_xe_file_target_read_file(N'C:\temp\ParameterTrace*', default, default, default);
Dan Guzman, SQL Server MVP, http://www.dbdelta.com

Similar Messages

  • How to find a customer who does not have any activity in the last 5 years

    HI all,
       How to find a customer who does not have any activity in the last 5 years.
    Thanks & Regards,
    Moderator message: not directly related to ABAP development, please have a look in the respective functional forum.
    Edited by: Thomas Zloch on Jan 3, 2011 2:20 PM

    Post Author: tzinser
    CA Forum: Formula
    Okay, I left off a lot of important information...
    I'm using two tables
    TWDATA
    EVENT
    From TWDATA I'm pulling the fields TWDATA.OrderNumber and TWDATA.DisbursementDate
    From EVENT I'm pulling the fields EVENT.EventCode and EVENT.CompletedDate
    The two tables are linked by OrderNumber.

  • TS1389 How do I find what purchases were made from my account?

    How do I find what purchases were made from my account? I have charges on my Credit card and did not make any purchases

    See:
    http://support.apple.com/kb/HT2727
    Regards.

  • How to find these values fall in what time?

    Post Author: newcruser
    CA Forum: General
    From 9 AM to 5 PM time range..how to find these values fall where?.
    Is that done using group selection method?.  Please give me idea and direction
    UserId   Type      login                               logout1           1          2008-04-13 09:30:42         2008-04-13 10:30:122           2          2008-04-13 09:30:12         2008-04-13 11:00:323           1          2008-04-13 10:30:32         2008-04-13 12:56:234           2          2008-04-13 10:30:42         2008-04-13 12:00:345           2          2008-04-13 11:30:34         2008-04-13 13:40:236           1          2008-04-13 12:30:43         2008-04-13 13:00:437           1          2008-04-13 13:20:43         2008-04-13 14:45:218           2          2008-04-13 14:30:42         2008-04-13 15:15:599           1          2008-04-13 15:00:42         2008-04-13 16:30:4210         1          2008-04-13 16:20:42         2008-04-13 17:00:00

    Post Author: newcruser
    CA Forum: General
    In my case minimum (login) time changes and maximum(logout) time changes everyday.
    I want to create from minimum (login) to  maximum(logout) for every hour, how many people are online. How to do?.
    UserId          login                               logout1           2008-04-13 09:30:42         2008-04-13 10:30:122           2008-04-13 09:30:12         2008-04-13 11:00:323           2008-04-13 10:30:32         2008-04-13 12:56:234           2008-04-13 10:30:42         2008-04-13 12:00:345           2008-04-13 11:30:34         2008-04-13 13:40:236           2008-04-13 12:30:43         2008-04-13 13:00:437           2008-04-13 13:20:43         2008-04-13 14:45:218           2008-04-13 14:30:42         2008-04-13 15:15:599           2008-04-13 15:00:42         2008-04-13 16:30:4210         2008-04-13 16:20:42         2008-04-13 17:00:00
    i found minimum (login) and maximum(logout) using below formula. Now i want to find every hour from minimum (login) to maximum(logout) , so i can use each hour value in formula to calculate how many people are online for that particular time. How to do that?.
    @Minimum
    DatePart("h",(Minimum ()))
    @Maximum
    DatePart("h",(Maximum()))

  • How to Find what all GL assigned to Particular account group ???

    Hi !!! anybody can help me in this issue ... How to Find what all GL assigned to Particular account group ???

    Hi,
    Go to SE16
    Give table name SKA1.
    Give COA
    Give account group and execute.
    All the GL accounts that were assigned to this group are listed.
    Reward points.
    Sarma

  • How to find what transaction an user was running for a given period

    hi
    could anybody tel me
    how to find what transaction a particular user was running for a given period
    in the past.............

    Hi,
    U need to findout the list of Tcode excuted by SAP user
    1) Tcode: ST03N
    2) Select Expert Mode option
               (there u find  Server Host name & Today)
       If u select Host name u find DAY/WEEK/Month (same thing will in Today option)
    3)Now u need to select the option of DAY,WEEK etc.
    Now u can find in two ways
    1) Transaction profile (Standard / EarlyWatch)
    2) User (user profile)
    If u select the Transaction profile
    Under these u find the option of Aggregation----application/package/tranasation etc.
    I hope these will help u to findout.
    Regards
    ASR

  • HT1338 Can anyone tell me how to find what OS I'm using on the Mac? Tiger or Leopard? Also, how do I update from 10.6.8 to the latest version?

    Can anyone tell me how to find what OS I'm using on the Mac?
    Tiger or Leopard?
    Also, how do I update from 10.6.8 to the latest version?

    Go to the Apple menu and select "About This Mac". You will get a window similar to this one -
    You current OS X version number will be shown as I've marked.
    OS X 10.4.x is Tiger, 10.5.x is Leopard, 10.6.x is Snow Leopard, 10.7.x is Lion, and 10.8.x is Mountain Lion.
    Whether or not you can go to the latest OS X version depends upon your hardware -
    You will need to purchase the retail set for the OS X version you want; there is no pint in getting and installing any intermediate versions. Once the retail version has been installed, you can update it to the latest release for that version via download updater.

  • How to find report values using report writer

    hi,
    Please help me.
    How to find report values using report writer
    Regards,
    RRK.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 12:01 PM

    Thanks all for the reply.
    I am trying to solve a problem where report parameter value that is set at Management Console is wiped out after calling replaceConnection.
    databaseController.replaceConnection(oldConnectionInfo, newConnectionInfo,
    null,DBOptions._doNotVerifyDB);
    We have to support changing database connection from a java utility
    class. But once replaceConnection is called all existing static parameter values are lost. To fix this issue we thought of getting parameters and values before calling replaceConnection and setting it after replaceConnection.
    Version is CS2008 SP3 - version 12.3.0.601
    If there is any other option of fixing the original wipe out issue?
    ParameterValues.getValues() didn't return value. I will try ParameterValues.getCurrentCalues() but the document says ParameterValues.getValues() is  equivalent to the IParameterField.getCurrentValues() method  unless it is empty, in which case it is equivalent  to the IParameterField.getDefaultValues() method.
    So getCurrentValues() may not work.

  • How to Find what are tables and "Table Name" in particular "Data File"

    hi Team,
    I have one database that database 300 gb size , this database having 6 ndf files ,
    here How to Find  what are the tables and  "Table Name"  in particular "Data File"[.ndf]

    Hi,
    In addition to Prashanth’s suggestion, you can also use the following Transact-SQL statements to get more detailed information including  all objects and indexes per Filegroup / Partition and allocated data size of databases.
    The script can work with Microsoft SQL Server 2005 and higher version in all Editions. For more details, please review this article:
    List all Objects and Indexes per Filegroup / Partition.
    -- List all Objects and Indexes
    -- per Filegroup / Partition and Allocation Type
    -- including the allocated data size
    SELECT DS.name AS DataSpaceName
    ,AU.type_desc AS AllocationDesc
    ,AU.total_pages / 128 AS TotalSizeMB
    ,AU.used_pages / 128 AS UsedSizeMB
    ,AU.data_pages / 128 AS DataSizeMB
    ,SCH.name AS SchemaName
    ,OBJ.type_desc AS ObjectType
    ,OBJ.name AS ObjectName
    ,IDX.type_desc AS IndexType
    ,IDX.name AS IndexName
    FROM sys.data_spaces AS DS
    INNER JOIN sys.allocation_units AS AU
    ON DS.data_space_id = AU.data_space_id
    INNER JOIN sys.partitions AS PA
    ON (AU.type IN (1, 3)
    AND AU.container_id = PA.hobt_id)
    OR
    (AU.type = 2
    AND AU.container_id = PA.partition_id)
    INNER JOIN sys.objects AS OBJ
    ON PA.object_id = OBJ.object_id
    INNER JOIN sys.schemas AS SCH
    ON OBJ.schema_id = SCH.schema_id
    LEFT JOIN sys.indexes AS IDX
    ON PA.object_id = IDX.object_id
    AND PA.index_id = IDX.index_id
    WHERE OBJ.type_desc='USER_TABLE'-- add this WHERE clause to display the information of user tables
    ORDER BY DS.name
    ,SCH.name
    ,OBJ.name
    ,IDX.name
    Thanks,
    Lydia Zhang

  • How to find what are all the rules and events are monitoring for specific server in SCOM 2007

    how to find what are all the rules and events are monitoring for specific server in SCOM 2007.
    I need to know what are all the events, services, and rules are monitored for the specific server.
    Kindly help me friends.

    how to find what are all the rules and events are monitoring for specific server in SCOM 2007.
    I need to know what are all the events, services, and rules are monitored for the specific server.
    Kindly help me friends.
    Thanks for the question Sandoss. This is something that we all come across at sometime.
    Thanks & regards, Sumit Agrawal
    The lack of this feature is an inexcusable oversight for an enterprise management product.  They have some serious lightweights making design decisions on the SCOM team. 5 thumbs down. 
    BTW the answer is probably LOTS of stuff. Literally 100's of workflows are running on any server. 
    The following OpsMgr DB query will list all running monitors on a server. Change the name of @srv. I think this works pretty well.  I'd like some feedback if something is missing.
    DECLARE @srv varchar(30)
    SET @srv = 'your name here'
    SELECT mon.displayName as monitor, bme.FullName,bme.DisplayName as object,
    case
        when s.HealthState = 1 then 'healthy'
        when s.HealthState = 2 then 'Warning'
        when s.HealthState = 3 then 'Critical'
        else 'N/A'
    end as Health
    FROM state AS s WITH (NOLOCK)
    left join BaseManagedEntity as bme WITH (NOLOCK) on s.basemanagedentityid = bme.basemanagedentityid
    left join dbo.MonitorView Mon WITH (NOLOCK) on Mon.ID = s.monitorid
    where
    bme.FullName like '%' + @srv + '%'
    and s.HealthState <> 0
    and mon.IsInternalRollupMonitor = 0
    and mon.IsExternalRollupMonitor = 0
    order by bme.DisplayName, mon.displayName

  • How to find what are triggers are present in the database?

    Hi All
    Can any one tell me how to find what all triggers present in the database.
    Thanks in Advance

    Hi All
    Can any one tell me how to find what all triggers
    present in the database.
    Thanks in AdvanceYou should visit Pythia, the Oracle of Delphi, near Thermopile in Greece. She might be able to give you an answer. Pythia was an early leader in executive decision support systems and is not to be confused with the Oracle Corp. of Redmond, CA. Pythia also has a group of helpful colleagues in Toronto. Rumor is that they're also making predictions by inhaling laurel vapors. SQL, as you know, stands for "Said Quixotically on Laurel".

  • What values  to pass the import values of FM -KAUF_AUFNR_CHANGE.

    Hi,
    what values  to pass the import values of FM -KAUF_AUFNR_CHANGE.., Since the fields in FM are different from the values of database table fields.

    Hi,
    the import parameters in the FM are type of structures. it basically acts as a work area.
    when you execute the FM, and click on the icon in front of the field, for example, I_AFKO, and then you can enter the values you want to.
    Hope it helps,
    Preet

  • How do I find what taking up all my hardrive space on my mac mini running snow leopard ?

    How do I find what taking up all my hardrive space on my mac mini running snow leopard ?

    Hi Gibby,
    How much free space is on the HD, where has all the space gone?
    OmniDiskSweeper is likely the easiest/best, and is now free...
    http://www.omnigroup.com/applications/omnidisksweeper/download/
    And if needed, you can use Terminal to run it in admin mode to see files/folders your user can't see...
    http://www.macobserver.com/tmo/article/how_to_recover_missing_hard_drive_space/

  • HT2509 Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the Mac Air? I need to be able to use a pop up window of fonts.

    Hello I wonder if anyone knows how to find, download and install a suitable IPA (phonetics) font for the MacBook  Air? I need to be able to use a pop up window of fonts.

    Unless you've done anything to change it, Google keeps every email that ever passes through their server in your All Mail folder/mailbox/label. Even if you delete stuff, they hold onto it, there. You have to go out of your way to actually delete anything permanently.

  • How to find non selling products in a departmental store

    hi experts,
    for example:
    how to find non selling products in a departmental store at end of the month in reporting. is it possible to find, if it is, pl give me the procedure.
    thanks & regards
    sairam

    Hi Kalla,
    You may have to use a multiprovider...
    The following how to documnet describes how you can achieve a similar report...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11291595-0501-0010-c881-e02c27261b55
    hope it helps,
    ajay

Maybe you are looking for