Viewing 15 posts - 5,551 through 5,565 (of 6,600 total)
What you have left to do is not going to be easy. Especially since you have no reliable method of determining that the first element in the space delimited...
February 10, 2009 at 3:56 pm
As written - your trigger is only valid when you can guarantee (for all time) that there will only ever be a single row updated at a time.
If you try...
February 10, 2009 at 3:49 pm
Sorry - that is a typo, it should be COALESCE.
February 10, 2009 at 3:22 pm
Because you are not referencing the table CFD in the from clause. You need something like:
UPDATE a
SET {columns}
FROM CFD AS a
...
February 10, 2009 at 3:20 pm
When you say blank, do you mean an empty string? If so, try:
select ID, cltattn, cltemail from clients where cltattn is not NULL and cltemail is not NULL
SELECT ID
...
February 10, 2009 at 2:49 pm
Well, with that small of an index - it will always show some level of fragmentation. It really doesn't mean much anyways if you think about it. With...
February 10, 2009 at 1:30 pm
Here is another method that is a bit simpler:
select convert(char(10), getdate(), 101)
+ ' ' + convert(char(5), getdate(), 108);
February 9, 2009 at 9:58 pm
You can also get this information using SMO and the properties DataSpaceUsage and IndexSpaceUsage.
Not sure if you can use that, since you can't use fileproperty().
February 9, 2009 at 9:38 pm
How many pages in that index? Small tables will always show some level of fragmentation. If this is a larger table (1000 pages or more) and it still...
February 9, 2009 at 9:26 pm
Also, you might be running into different execution plans between SSMS and ADO. That would depend upon the connection parameters being setup in ADO. One thing I have...
February 8, 2009 at 6:48 pm
SELECT * FROM TableA
EXCEPT SELECT * FROM TableB;
The result will be rows from TableA that do not have a corresponding row in TableB (exact match on all columns). If...
February 8, 2009 at 10:51 am
Jeff Moden wrote an article on this site that addresses the issue of Running Totals. However, he apparently has pulled the article to correct some issues he found with...
February 6, 2009 at 4:50 pm
To only affect those indexes that have more than 1000 pages:
Selectobject_id As ObjectId
,index_id As IndexId
,partition_number As PartitionNumber
,avg_fragmentation_in_percent As AvgFrag
,page_count As PageCount
,index_type_desc As IndexType
Into #work_to_do
...
February 6, 2009 at 4:31 pm
If you are running Enterprise Edition - you have the option of rebuilding indexes ONLINE. As it is currently written, those indexes being rebuilt will not be available -...
February 6, 2009 at 3:39 pm
Viewing 15 posts - 5,551 through 5,565 (of 6,600 total)