Forum Replies Created

Viewing 15 posts - 30,901 through 30,915 (of 49,552 total)

  • RE: system views sql

    SELECT Schema_Name(Schema_id) as SchemaName, t.name as TableName, c.name as ColumnName, c.collation_name

    FROM sys.tables t INNER JOIN sys.columns c on t.object_id = c.object_id

    WHERE collation_name is not null

    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: Database blocking-please help

    Before you use Nolock, check that the users are happy with possibly getting incorrect data....

    See - http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/10/how-dirty-are-your-reads.aspx

    Severe blocking is generally the result of poor indexing (not fragmented indexes, just not...

    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: Maintenance Plans

    My preference is two maint plans (when I use maint plans)

    1) - Rebuild indexes, update statistics

    2) - Integrity check, backup database

    Integrity check before backup. There is no point whatsoever in...

    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: Cluster Index - Huge Table - 0 Fragmentation - Clustered Index Scan???

    If you can afford to duplicate the entire 15 GB table (which is what an index with all columns included will do), and don't care about the impact of that...

    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: Maintenance Plans

    ashish.kuriyal (9/7/2010)


    you can add one more step to verify the backup when its being copleted, and it will confirm you either backup is valid set or not.

    Do note that verify...

    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 Server 2008 Certification

    I wrote the exams while they were still in Beta. Used Books Online to study.

    Or see here for still measured and available resources.

    http://www.microsoft.com/learning/en/us/certification/cert-sql-server.aspx

    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: req info on mssql 2000 devloper cert

    You can't. The necessary exams were retired years ago. you can write certs for SQL 2005 and 2008, but not for 2000 any longer.

    http://www.microsoft.com/learning/en/us/certification/cert-sql-server.aspx

    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: table tuning

    SwayneBell (9/7/2010)


    Would this behavior occur if the table once held a lot of records, and they were deleted (not truncated)?

    I.e does SQL Server retain a "high water mark" of space...

    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: HOW DO ONE ENABLE READ ISOLATION ON A DATABSASE?

    THE-FHA (9/7/2010)


    Clearly the person who asked knows what he wants.

    Not necessarily. I've seen many cases where people have asked for things without understanding what they want or what 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: Replace Not in subquery with a self join

    Just note that it is not a requirement that a CTE start with a ;. It's a requirement that the statement before be terminated with a ;. Since this termination...

    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: check history of lock info

    For deadlocks, turn traceflag 1222 on and the deadlock graph will be written to the error log.

    What exactly do you mean by 'our replication cannot synchronize problem'

    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: Replace Not in subquery with a self join

    Not a suggestion, but...

    http://sqlinthewild.co.za/index.php/2010/03/23/left-outer-join-vs-not-exists/

    Please post table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    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: DBCC SHRINKFILE not working for datafile

    What's the output of sp_spaceused?

    What's the shrink operation waiting for? (check sys.dm_exec_requests)

    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: check history of lock info

    Exec sp_lock (which is deprecated, included only for backward compatibility with SQL 2000 and should not be used for new development) will tell you the current locks in the system.

    There...

    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: Database Administrator vs. Database Engineer

    Depends completely on the company. There's no industry-standard definition of titles. The boss can make your titles whatever he (or you) likes, the important thing is what your job responsibilities...

    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 - 30,901 through 30,915 (of 49,552 total)