retrieve the stored procedure or script execte time and cost source
2009-01-22 16:19
661 查看
USE [Brunei-eCustomsDEV]
GO
dbcc freeproccache
go--clear the cache in sql server
set statistics profile on
set statistics time on
set statistics io on
go
DECLARE @return_value int,
@p_total_count int
EXEC @return_value = [dbo].[P_BC_LIS_LIQUOR_INFOR_S]
@p_liq_import_ref_no = NULL,
@p_passenger_name = 'xiong1',
@p_passenger_dob = NULL,
@p_passport_no = NULL,
@p_location = NULL,
@p_date_arri_from = NULL,
@p_date_arri_to = NULL,
@p_start_row_index = NULL,
@p_maximum_rows = NULL,
@p_total_count = @p_total_count OUTPUT,
@p_sort_expression = NULL
SELECT @p_total_count as N'@p_total_count'
SELECT 'Return Value' = @return_value
GO
set statistics profile off
set statistics time off
set statistics io off
go
GO
dbcc freeproccache
go--clear the cache in sql server
set statistics profile on
set statistics time on
set statistics io on
go
DECLARE @return_value int,
@p_total_count int
EXEC @return_value = [dbo].[P_BC_LIS_LIQUOR_INFOR_S]
@p_liq_import_ref_no = NULL,
@p_passenger_name = 'xiong1',
@p_passenger_dob = NULL,
@p_passport_no = NULL,
@p_location = NULL,
@p_date_arri_from = NULL,
@p_date_arri_to = NULL,
@p_start_row_index = NULL,
@p_maximum_rows = NULL,
@p_total_count = @p_total_count OUTPUT,
@p_sort_expression = NULL
SELECT @p_total_count as N'@p_total_count'
SELECT 'Return Value' = @return_value
GO
set statistics profile off
set statistics time off
set statistics io off
go
相关文章推荐
- AutoMapper:Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type
- Sharepoint Service Error: A deployment or retraction is already under way for the solution "xxx.wsp" , and only one deployment or retraction at a time
- Use the Stack mehod and a temporary Stack to retrieve entries from the Stack source and add
- TableView出错:Either the tableModel parameter or both source and columns parameters must be specified by component.....
- Testing/Running the stored procedure(has OUT params) in Oracle sqldeveloper or sqlplus
- This function has none of Deterministic,no sql,or reads sql data in its declaration and binary logging is enabled(you *might* want to use the less safe log_bin_trust_function_creators variable
- The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone. You mu
- FW - check whether tree is balanced or not - find the max and min of one tree- 2013年12月18日13:12:04
- Using MERGE in SQL Server to insert, update and delete at the same time
- Script To Monitor RDBMS Session UGA and PGA Current And Maximum Usage Over Time
- How to Create Transportable Tablespaces Where the Source and Destination are ASM-Based
- JavaSE8-The New Date and Time API(1)
- 推荐一篇文章<<Time, Clocks, and the Ordering of Events in a Distributed System>>
- There are inconsistent line endings in the 'xxx' script. Some are Mac OS X (UNIX) and some are Windo
- Always override Object.equals() and Object.hashCode() in the same time
- InvalidArgumentError : Shape in shape_and_slice spec [,] does not match the shape stored in checkpoi
- Get the Degree of Angle Between Hour and Minute Hand of a Clock at Anytime
- Treadmill: Attributing the Source of Tail Latency through Precise Load Testing and Statistical Infer
- System.Security.SecurityException The source was not found, but some or all event logs could not be searched.Inaccessible logs Security.
- Running PHP(Apache) and ASP.NET(IIS) at port 80 at the same time