Forum Replies Created

Viewing 15 posts - 30,646 through 30,660 (of 49,552 total)

  • RE: query to Find out tables not having primary key in the database

    SELECT name AS TableName FROM sys.tables WHERE OBJECTPROPERTY(object_id,'TableHasPrimaryKey') = 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: Today's Random Word!

    Bone dry. (Hasn't rained since April/May)

    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: scheduling full backup during logshipping in SQLServer 2000

    ravisamigo (9/16/2010)


    Thanks. I read the below information from one article.

    "In SQL Server 2000 you won't be able to take full backup of log shipped database, because this will break 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: Critical issues detected by SQL Server BPA

    SafeDistance (9/16/2010)


    Gail, Will you accept my apology?

    Certainly.

    I actually was referring to the post saying something like 'do you need another opinion, a confirmation or something else.'

    We get...

    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: Large LDF Despite Frequent Backups

    homebrew01 (9/16/2010)


    Would multiple steps within a batch have the same effect: ?

    insert into tableA ....

    update tableA ...

    insert into tableB ....

    All run in the same job step (but no explicit transactions)

    No....

    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 find open transaction statements?

    Dave Ballantyne (9/16/2010)


    What Gail showed will work if the "Begin Tran" statement is within the presently executing batch.

    What it will show is the last batch executed by a session 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: Large LDF Despite Frequent Backups

    Index rebuilds?

    So, in this case, would 1 long transaction cause the log to grow despite the backups ?

    Yes. The log can only be truncated up til the beginning of 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: How find open transaction statements?

    Did you test it? On my 2008 server it's returning exactly what you asked for.

    Test: Open 2 management studio windows.

    Window 1: Connect to AdventureWorks and run

    BEGIN TRANSACTION

    UPDATE HumanResources.Employee

    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: How find open transaction statements?

    Try the second query that I posted. When I tried that out on my own server, it returned one row with the expected session_id and T-SQL statement.

    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 find open transaction statements?

    Also try this one:

    SELECT *

    FROM sys.dm_tran_session_transactions tst INNER JOIN sys.dm_exec_connections ec ON tst.session_id = ec.session_id

    CROSS APPLY sys.dm_exec_sql_text(ec.most_recent_sql_handle)

    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 find open transaction statements?

    Does this help?

    SELECT *

    FROM sys.dm_tran_active_transactions tat

    INNER JOIN sys.dm_exec_requests er ON tat.transaction_id = er.transaction_id

    ...

    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: Restore SQL 2000 DB into SQL 2008 DB Server

    Latest patch level for SQL 2000 is SP4, and lower than SP3 there are some really nasty vulnerabilities

    Latest patch level for SQL 2008 is SP1

    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: scheduling full backup during logshipping in SQLServer 2000

    ravisamigo (9/16/2010)


    I think, it’s possible only in SQLServer2005 since it won’t break the log chain.

    Can you confirm what will happen in SQLServer 2000 if we schedule full backup during...

    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?

    Paul White NZ (9/16/2010)


    What an odd reaction by Mark Enloe (presumably the OP using a different account).

    Don't think it's the bit thread OP. Different phrasing and language constructs

    He/she seems to...

    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: Reset SQL user password by user it self if they forget.

    If you do as Craig suggests, you'll need to somehow enforce that they can only change their own passwords. Otherwise some mischievous individual can change his colleague's password, the sa...

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