Viewing 15 posts - 31 through 45 (of 49 total)
Thanks dave... its working but in my real time scenario where i have a millon of records to compare count(*) over (paritition...
is taking very long time to return the...
October 8, 2010 at 2:55 am
Thanks Hugo. Nice explanation.
I have used the below DBCC to see how page allocation happening and how it logically arranged using NextpageID and PrevpageID.
DBCC IND(Demo, Demo, -1);
GO
October 5, 2010 at 3:22 am
My guess is right. 🙂
Nice Question.
September 14, 2010 at 12:08 am
Thanks for the nice question.
It would have been tough if you didn't have "-- Drop the associated constraints" in the statements.
September 13, 2010 at 12:10 am
Yes Happycat...Good Explanation.
Select ceiling(Convert(decimal(2,1),1.09)) will give you the result 2.
September 2, 2010 at 12:24 am
Try This..
Create Table TableA (ID int identity(1,1),FakeName1 Varchar(20),FakeName2 varchar(20),Amount int)
Create Table TableB (ID int identity(1,1),Actualname Varchar(20),FakeName varchar(20))
Insert into TableA Values('Mike','Johnny',10000),('Ruke','Dirk',10000),('Andy','Micheal',10000)
Insert into Tableb Values('Peter','Johnny'),('Andrews','Andy'),('Stephen','Dirk'),('Murray','Micheal')
Select * from TableA
Select * from TableB
;with P1CTE...
August 26, 2010 at 1:36 am
Nice question..
Complex select statements ..so I ignored it and guessed the answer with the where condition.
July 1, 2010 at 11:53 pm
Must be typing mistake from the author of this question... but how can we have "-0" in the result. 😉
June 28, 2010 at 12:22 am
Good Question.
SELECT @t = @t + @comma + a.a
,@comma = ','
FROM #a a
ORDER BY 1
Result : C
SELECT @t = @t + @comma + a.a
,@comma...
June 25, 2010 at 12:56 am
Good.
but when tried with SET QUOTED_IDENTIFIER OFF; also it is working fine. (in SQL Server 2008).
June 3, 2010 at 12:42 am
Hi Namrata,
All I found was in the first SP in line number 28 you are passing "password". In that place you should pass the variable "@Password".
Is this cause the problem?
June 2, 2010 at 8:08 am
Thanks Site Owner..
Exactly I have the same requirement in my offfice as we are going to change few of our indexes as unique based on the natural keys. This helps...
May 31, 2010 at 5:11 am
Hi bijs,
You can create 12 partitions based on the month key(Mkey) value. But it will store the data irrespective of the year.
2009 January data and 2010 January data will...
May 26, 2010 at 2:19 am
Viewing 15 posts - 31 through 45 (of 49 total)