Forum Replies Created

Viewing 15 posts - 13,801 through 13,815 (of 49,552 total)

  • RE: ROWLOCK

    Sure you can change the isolation level in a trigger. The new isolation level takes effect from that point until it's set to something else. Isolation level specified by SET...

    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: ROWLOCK

    Leave out the hints, just set the isolation level before you start the transaction. There's no good reason to use hints over the explicit isolation level.

    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: CAST CONVERT doesn't work

    The thing is, 0 can't be cast to a date.

    DECLARE @SomeDate CHAR(8) = '0'

    SELECT ISDATE(@SomeDate), CAST(@SomeDate AS DATE)

    Msg 241, Level 16, State 1, Line 3

    Conversion failed when converting date and/or...

    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: what is alternative for *= in sqlserver 2012

    LEFT/RIGHT OUTER JOIN is the newer join method, the older *= has been deprecated since 2005.

    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: Upgraded from SQL2000 to SQL2008R2 - Now have corruption

    Most likely what happened here is you had corruption in the 2000 database, checkDB wasn't as good on 2000 and so missed it, after upgrade it was picked up.

    Got a...

    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: Log Backups Failed to Truncate Log

    Please read through this: http://www.sqlservercentral.com/articles/Transaction+Log/72488/

    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: CAST CONVERT doesn't work

    That exact query returns over 13000 rows that fail the isDate check?

    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: Few tricky Questions about SQL Server 2008 that I came across...

    beginner_dk (3/19/2013)


    Regarding sorting order, i went through the BOL over clause and tested on a table created my self and it worked. so i thought it might be true.

    "It...

    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: CAST CONVERT doesn't work

    What does this return?

    SELECT CONVERT(CHAR(8), EZACDT)

    FROM SYM_SPT_SNI_01.dbo.DBA_MVX_CINACC00

    WHERE EZCONO = 2

    AND EZDIVI = '001'

    AND ISDATE(CONVERT(CHAR(8), EZACDT)) = 0;

    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: Do Users based on logins in master have access to other databases?

    clintonG (3/19/2013)


    I'm deleting Guest and I wasn't planning on giving anybody the sa. I'll also change the sa password to a GUID. I'm installing SQLExpress and if they want 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
  • RE: Details on the certification

    All the details on the certs and exams: http://www.microsoft.com/learning/en/us/certification/cert-sql-server.aspx

    For prices and booking, you want the Prometric website.

    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: Time out option on DB

    That's not a database setting, get the developer to check the app again. SQL won't automatically close connections (I've left connections open for days or weeks)

    Only way it can be...

    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: Doubt about Shrinking process , Rebiulding index and fragmenatation

    anoop.mig29 (3/19/2013)


    hi i know that shrinking data base increase fragmentation , so logically shrinking data files would two result in fragmentation but does shrinking log file increases fragmentation. i hope...

    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: Can't get rid of Key Lookup in execution plan

    Typically the order of keys in teh index should be where clause first, joins second. If you have them that way round, it's going to be useful no matter whether...

    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: What are the chances to went a DB offline or Suspect mode?

    A database goes offline when someone runs ALTER DATABASE <database name> SET OFFLINE or right clicks the database Tasks -> Set offline. That's a user operation. If you have a...

    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 - 13,801 through 13,815 (of 49,552 total)