Forum Replies Created

Viewing 15 posts - 23,851 through 23,865 (of 49,552 total)

  • RE: Need help configuring FreeNAS 8.0 for a "lab rat" SQL Server cluster for home use

    Jonathan's blog post (which I referred you to in the previous thread) described Storage Server. That's what he uses on all his virtual SANs

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Removed Null values by this output

    That's your grand total.

    This should be clearer

    SELECT CASE GROUPING(type_desc) WHEN 1 THEN 'Total' ELSE MAX(type) END AS Type, COUNT(*) AS NoOfObject, type_desc

    FROM sys.objects

    GROUP BY ROLLUP(type_desc)

    ORDER BY GROUPING(type_desc), MAX(type), type_desc

    That's...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Removed Null values by this output

    It's because you have the rollup over two columns. This probably does what you want.

    SELECT MAX(type) AS Type, COUNT(*) AS NoOfObject, type_desc

    FROM sys.objects

    GROUP BY ROLLUP(type_desc)

    ORDER BY MAX(type), type_desc

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sql query takes long time to execute

    That is not what I asked for. The column names aren't in that and they are the most important part. I can't conclude anything from the name of an index

    Generate...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Need help configuring FreeNAS 8.0 for a "lab rat" SQL Server cluster for home use

    Not an answer, but what's wrong with Microsoft Storage Server (for iSCSI targets)? It's free and it's easy to configure.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: optiontips.in how to avail sql server

    Sorry, what do you want?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: sql query takes long time to execute

    Index definitions please (script the create index statements)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Back in the saddle

    Tom.Thomson (8/26/2011)


    SET TRANSACTION ISOLATION LEVEL REPEATABLE READ

    I'm sure that if I type that into an SSMS Query Window it will come out all in blue instead of 2 words blue,...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Getting NULL for Object Name when trying to decode sys.dm_tran_locks.resource_associated_entity_id

    sys.partitions is a per-database view. Not per-server. That join is only a valid one if you're running that in the DB that has the locks.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Getting NULL for Object Name when trying to decode sys.dm_tran_locks.resource_associated_entity_id

    The partition_id and object_id are database-specific, they're not server-wide values. sys.partitions is per-database.

    I get the correct names only if I run that in the context of the DB that the...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Back in the saddle

    Christi Wilson (8/26/2011)


    GilaMonster (8/26/2011)


    Christi Wilson (8/26/2011)


    REPEATABLE

    Not a keyword by itself and not new.

    Thanks, I had never heard of it, so it was new to me. I did a search...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Rebuilding indexes on solid-state disks; is it worth it?

    Absolutely yes.

    Not because of the fragmentation, because of the wasted space from page splits. If your table has split and split and split and your pages are on average 60%...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Updating a column....

    Does the select perhaps return rows from TableA multiple times due to the join? If so, those will only be updated once.

    How many rows does this return?

    SELECT DISTINCT d.*

    FROM...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Confusing Index size

    sunny.tjk (8/26/2011)


    GilaMonster (8/24/2011)


    Run DBCC UpdateUsage

    This DB has been upgraded from SQL 2000?

    Sorry, I just have read permissions to the database.

    So ask someone who has rights to run it

    No, the database...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: UPDATE on a Heap gone bad...

    No.

    The identity column would have to have been an int (can't set identity on a char column) so the value in the where clause would either have to be an...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 23,851 through 23,865 (of 49,552 total)