Viewing 15 posts - 196 through 210 (of 237 total)
Sounds like a distribution database.
March 18, 2014 at 12:27 pm
Jeff Moden (3/14/2014)
JoshDBGuy (3/14/2014)
March 14, 2014 at 9:08 am
Thanks a bunch, much easier than I thought.
March 11, 2014 at 1:20 pm
Great, thanks so much!
March 4, 2014 at 8:48 am
djj (3/4/2014)
March 4, 2014 at 8:32 am
Sean Lange (2/28/2014)
JoshDBGuy (2/28/2014)
February 28, 2014 at 8:56 am
Do you have a best practice for cursors? Just don't use them at all or only in certain situations? I tend to use them for small sets of data, such...
February 28, 2014 at 8:38 am
You can put the witness on the mirrored server but that's not generally a good idea. I believe, and someone else can probably confirm, that you can use any version...
February 28, 2014 at 8:24 am
Depending on how many rows you're looking at, you can use a cursor or you can probably use a loop with IF then statements with a temporary table or tables....
February 28, 2014 at 8:14 am
My bad, I think I understand what you're looking for now. Does the above query work? I edited it. I doesn't have the filegroup info but you can add that...
February 26, 2014 at 8:54 am
Here you go, you can modify this to get more data.
SELECT DISTINCT
OBJECT_SCHEMA_NAME(T.[object_id],DB_ID()) AS [Schema]
,T.[name] AS [table_name]
,I.[name] AS [index_name]
--,AC.[name] AS [column_name]
,I.[type_desc]
--,I.[is_unique]
--,I.[data_space_id]
--,I.[ignore_dup_key]
--,I.[is_primary_key]
--,I.[is_unique_constraint]
--,I.[fill_factor]
--,I.[is_padded]
--,I.[is_disabled]
--,I.[is_hypothetical]
--,I.[allow_row_locks]
--,I.[allow_page_locks]
--,IC.[is_descending_key]
--,IC.[is_included_column]
,PS.AVG_FRAGMENTATION_IN_PERCENT
FROM
sys.[tables] AS T
INNER JOIN sys.[indexes] I ON T.[object_id]...
February 26, 2014 at 8:05 am
You don't need to set up a central management server if you're the only DBA and you are only hitting one server.
You can run something like this,
CREATE TABLE #TEMP1 (
DATABASE_NAME...
February 26, 2014 at 7:52 am
Thanks again. Some great information.
February 25, 2014 at 10:37 am
Viewing 15 posts - 196 through 210 (of 237 total)