Viewing 15 posts - 2,716 through 2,730 (of 2,840 total)
It would be better to put tempdb in a separate drive. Then there wont be much Disk IO issues. Other than that, your idea seems pretty good.
February 12, 2008 at 2:27 pm
Ah Yes Matt, you are right. Thats what happens when you start typing the query in without looking at it carefully:hehe:. My bad..
February 12, 2008 at 2:12 pm
Glad that it worked for you. I got this info from one of the other Forum members.
February 12, 2008 at 1:52 pm
You could use derived tables for each sum and do a left join.
Some thing like
Select Ix.D, a.FirstVale, c.FourthValue, d.FifthValue
from MainTable as x
Left Join
(Select Sum(Column1) from Table1) as a
on x.ID...
February 12, 2008 at 1:50 pm
You can use row_number() over partition
select * from (select *, row_number() over (partition by Date order by Count desc) as num from ) as z
where num <= 3
February 12, 2008 at 1:41 pm
Anotonio,
Your quick and dirty trick worked like charm..:)
Thanks Mate. 🙂
Roy
February 6, 2008 at 12:06 pm
Thank You Ivan and Ian. I am glad you apreciate the article. It is very encouraging to get feed backs when writing articles.
January 30, 2008 at 7:07 pm
Isnt this just an oversight from you?
One table has "Collect_Date" as column name and the other one has "CollectDate" as column name. So it will return that error.
January 30, 2008 at 2:06 pm
Thanks Mike. Although I have around 12+ yrs of experience as DBA, I have only 3 yrs of experience in MS SQL. I was an Oracle DBA. So I am...
January 29, 2008 at 7:09 pm
Thanks again for all the input. This is my first article. So it makes me happy that it is being read and is also being discussed. 🙂
I will have...
January 29, 2008 at 2:43 pm
Drop Procedure dbo.sp_who5
go
/*******************************************************************************************************
** Name: admin.dbo.sp_who5
** Desc: Procedure to retrieve information about active sql connections
** Auth: Adam Bean
** Date: 12/10/2007
*******************************************************************************
** Change History
*******************************************************************************
** Date: Author: Description:
** -------- -------- ---------------------------------------
**
********************************************************************************************************/
CREATE PROCEDURE [dbo].[sp_who5]...
January 29, 2008 at 5:38 am
Hi All,
Thanks for all the input you have provided. Since you all read it it means I did something to make you think of different options that is possible.:)
Using of...
January 29, 2008 at 5:14 am
It might work for me, I have to check it. It was just a work around that I had for getting the Stored Proc name. When I go back to...
January 26, 2008 at 6:42 am
I just created a derived table for all the Union ALL statements and aliased as x.
(Select id, name from sys.sysobjects with (readuncommitted)
UNION ALL
Select id, name from testdb.sys.sysobjects with (readuncommitted)
UNION...
January 25, 2008 at 2:03 pm
Adam Bean (1/25/2008)If I look at the results from the code above, the newly created sp_who5, it shows the contents of the procedure ... as a create statement instead of...
January 25, 2008 at 1:44 pm
Viewing 15 posts - 2,716 through 2,730 (of 2,840 total)