Viewing 15 posts - 1 through 15 (of 82 total)
Thanks I got your point..Indeed it is having only 2 page table .
i have other table also they were having more than 1000 rows and having clustered index and page...
January 30, 2014 at 12:40 am
do you want this
select RIGHT('0'+CONVERT(VARCHAR(2),month(GETDATE())),2)
March 1, 2013 at 2:17 am
Hi
I am not getting your question exactly
but do you want this kind of thing
select * from database1.sys.tables
where name not in (select name from database2.sys.tables)
March 1, 2013 at 12:29 am
I would say yes you have to rebuild your index after sync dome with server.
Updating table which is having cluster index may face this problem batter to rebuild index once...
March 1, 2013 at 12:19 am
U can get rough estimation from
dm_db_index_usage_stats or sys.dm_db_index_usage_stats
depends that you have indexed table
February 26, 2013 at 11:34 pm
This is ok to me still at the end all depend on ur project requirement and DB requirement,u need to modify as per that only.
February 26, 2013 at 4:04 am
but If performance is in concern then go for
select CandidateID, max(YourDateColumn)
from YourTable
group by CandidateID
February 26, 2013 at 3:39 am
Add alias name to query like C(or any else ) then try
SELECTL01, LO3, COUNT (*) Counts
FROM(
SELECTA.L01, A.L03, A.L39, B.A04, B.A10, B.A31
FROM[LEARNER_SN05]AS A
INNER JOIN(
SELECTL01, L03, A04, A10, A31
FROM[AIMS_SN05]
WHEREA04 <> 35
ANDA10...
February 26, 2013 at 3:37 am
First find fragmentation this query helps you
select a.*,b.AverageFragmentation from
(
SELECT
tbl.name AS [Table_Name],
tbl.object_id,
i.name AS [Name],
i.index_id,
CAST(CASE i.index_id WHEN 1 THEN 1 ELSE 0 END AS bit) AS [IsClustered],
CAST(case when i.type=3 then 1...
February 26, 2013 at 2:51 am
I am not getting you.. will you provide some schema of table and sample data and what you
want (result data).
which help us for proper answer
February 26, 2013 at 2:47 am
Whats current Log size? and database size?
if its showing Inrecovery then wait for some time let database recover and then shrink database log file or change recovery mode to simple...
February 26, 2013 at 12:04 am
What is ur "OrganizationID"(Keys,Constrain)...can you provide script of Organization table.
February 25, 2013 at 10:09 pm
it will consider "older than the 22nd October(today's date) to be 'minus one month'".
November 22, 2012 at 4:07 am
true,
it's all depend on what result you want from query.
November 22, 2012 at 4:03 am
Viewing 15 posts - 1 through 15 (of 82 total)