Viewing 5 posts - 1 through 5 (of 5 total)
Or you can try something like the statement below:
SELECT
ss.is_user_process ,
ss.session_id,
ss.host_name,
ss.login_name,
ss.nt_domain,
ss.nt_user_name,
ss.status,
ss.total_elapsed_time,
ss.reads,
ss.writes,
ss.logical_reads,
ss.cpu_time as SessionCPU, -- CPU time, in milliseconds, that was used by this session.
ss.row_count,
ss.prev_error,
(select m.text from sys.messages m...
September 18, 2007 at 3:46 am
Got it , thank you.
R
September 11, 2007 at 4:57 am
A combination between the 2 solution can do as well :>)
SELECT *
FROM
(
SELECT [PRODUCT_NAME],[PART_NUMBER],[Qty],
sum(case when Product_Name = 'BOM1' then isnull(Extended_Cost,0) else 0 end ) as Bom1Cost,
sum(case...
August 29, 2007 at 5:22 am
.. try something like this in your trigger:
select SYSTEM_USER,HOST_NAME(),user_name(),SESSION_USER,
March 13, 2007 at 2:56 am
..maybe something like this :
create procedure test as
begin
select top 10 *
from mytable
for xml explicit
end
Cheers
R
March 12, 2007 at 8:51 am
Viewing 5 posts - 1 through 5 (of 5 total)