Forum Replies Created

Viewing 15 posts - 34,666 through 34,680 (of 49,552 total)

  • RE: Are the posted questions getting worse?

    I had one of those earlier in the week.

    OP: Why is my database still Restoring... almost a day later?

    Me: Because you ran the restore WITH NORECOVERY

    OP: Oh.

    I mentioned it on...

    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: Use of a VARCHAR(MAX) in a Non-Clustered Index?

    crainlee2 (1/15/2010)


    In answer to your "Why?" question, it's because this particular programmer has no concept of the need for efficiency.

    Nor appropriate data types, I would assume.

    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: Upgrade from SQL Server to SQL Server 2008

    Get a copy of the database on a server that you do have access to and run upgrade advisor. Fix everything it complains about. Upgrade your test server to SQL...

    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: Row locking and Table locking

    mstjean (1/15/2010)


    The OP said they run the process daily, and delete all rows > 7 days old as the final step, so he's never got more than 8 days of...

    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: Backup Error

    There should be something in the SQL error log on why the backup failed. Check and see.

    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: Some general questions

    andy 21711 (1/15/2010)


    Thanks for your replies. I realise there are autocommit transactions, but since they are each one statement long, how can there be deadlocks unless one statement manages...

    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: Had a SAN failure, what should I do to ensure databases are not corrupted?

    That will check every page in the database for corruption, check the schema, check the allocation information. If there's any form of corruption in the database it'll pick it up...

    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: Looking for PK's in Tables

    SELECT name as TableName, ObjectProperty(object_id, 'TableHasPrimaryKey') AS HasPrimaryKey

    FROM sys.tables

    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: Use of a VARCHAR(MAX) in a Non-Clustered Index?

    You cannot create an index that has a varchar(max) as a key column.

    CREATE TABLE Test (

    id INT,

    StringCol VARCHAR(MAX)

    )

    CREATE INDEX idx_wontwork ON Test (StringCol)

    Msg 1919, Level 16, State 1, Line...

    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: Is bcp command logged ?

    Logged as in written to the transaction log?

    If so, yes. All operations are logged and there's no way to turn logging off.

    If your database is in Bulk-logged recovery, the bcp...

    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: Are the posted questions getting worse?

    tosscrosby-60625 (1/15/2010)


    Gail, you know the answer, give the users the ability to kill the offending SPID! Clean and simple solution to keep things quiet while the OP searches madly for...

    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: Had a SAN failure, what should I do to ensure databases are not corrupted?

    Run this on all databases that were on the SAN

    DBCC CHECKDB (<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    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: Deadlock Scenario

    kingscriber (1/15/2010)


    As for the isolation level access to that table as serializable, there is no real reason why. I am not even sure why it determined that.

    SQL doesn't decide on...

    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: If database in Bulk Log recovery model then how you will configure Transaction Replication?

    We can't help you with your fight with an interviewer. If you have problems with the questions, take it up with the interviewer if you can.

    Transactional replication is configured exactly...

    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: Deadlock Scenario

    I'm going to stick this in the queue to be looked at over the weekend, cause deadlocks take time to work out.

    As for the resources involved in the deadlock:

    SPID 62:...

    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 - 34,666 through 34,680 (of 49,552 total)