Viewing 5 posts - 1 through 5 (of 5 total)
Hi
You have to add hour to both tables
SELECT cast(floor(cast(SaleTime as float)) as datetime)Saledate,DATEPART(hour,SaleTime) saleshour
,sum([SaleQty]) sumsales
into #salessum
...
June 13, 2011 at 8:07 am
Hi
Can use cross-join with hour table
This is easier solution by more costly on the execution plan
June 13, 2011 at 2:38 am
Learn allot very good article:-)
September 25, 2009 at 8:44 am
Right U are but U can see all the blocked paid's by order of waittime and can see what spid A is Doing by DBCC inputbuffur(spid a)
and decide if to...
February 6, 2009 at 6:51 am
U can find the deadlock on line by running the script:
select * from master..sysprocesses where blocked>0 and spid<>blocked
order by waittime desc
and find the spid
then use :
dbcc inputbuffer (spid no)...
February 4, 2009 at 9:23 am
Viewing 5 posts - 1 through 5 (of 5 total)