Viewing 15 posts - 286 through 300 (of 366 total)
Good luck! and don't forget to share the experience 🙂
Iulian
June 7, 2011 at 3:30 am
Hi Ashok,
What I would do from here is:
1. add an identity_column to the initial table, so that we know what consecutive means.
2. create a...
May 20, 2011 at 6:40 am
I think I have got it,
so if they are consecutive records with the same attrib it should combine them and result one single record with begda the begining of...
May 18, 2011 at 1:12 pm
Here is the full script:
CREATE TABLE #X( id INT, attrib INT ,begda DATETIME ,endda DATETIME)
INSERT INTO #X ( id,attrib,begda,endda )
SELECT 1, 100, '3/10/2010', '3/31/2010'
UNION ALL SELECT 1, 100,...
May 18, 2011 at 6:25 am
It looks very much like this:
SELECT * FROM X
ORDER BY
LEN(attrib) ASC ,
begda,
DATEDIFF(DAY, begda, endda) desc
but why are 3 rows left outside from the result set
(
...
May 18, 2011 at 6:14 am
First I would create the initial table with the following script:
CREATE TABLE X( id INT, attrib INT ,begda DATETIME ,endda DATETIME)
INSERT INTO X ( id,attrib,begda,endda )
SELECT 1, 100,...
May 18, 2011 at 5:32 am
Thanks Craig,
and also shrink it with DBCC SHRINKFILE.
Um, why would you do that?
REINDEX, sure. Shrinkfile? That's not going to help here.
Shrinkfile, if anything, will make it...
February 2, 2011 at 2:09 pm
Thanks a lot,
Now I understand, though the documentation is confusing.
Does anyone has at hand a small sample in order to try it. Even if it sounds well documented I...
February 2, 2011 at 10:26 am
Not sure about this. Please explain.
The /Conf[igFile] parameter of dtexec
Specifies a configuration file to extract values from. Using this option, you can set a run-time configuration that differs from...
February 2, 2011 at 1:26 am
I would evaluate the database with DBCC CHECKDB and also shrink it with DBCC SHRINKFILE.
Regards,
Iulian
February 1, 2011 at 3:48 pm
Try to look at sys.DM_DB_INDEX_PHISICAL_STATS
On msdn: http://msdn.microsoft.com/en-us/library/ms188917.aspx
you can find also an example "Using sys.dm_db_index_physical_stats in a script to rebuild or reorganize indexes".
Regards,
Iulian
February 1, 2011 at 3:43 pm
Viewing 15 posts - 286 through 300 (of 366 total)