Forum Replies Created

Viewing 15 posts - 5,026 through 5,040 (of 49,552 total)

  • RE: SQL Model database files missing, inaccessible or corrupt - The SQL Server Instance That Will not Start

    Yes, and as I mentioned earlier, there may be cases where it doesn't work because TempDB is not designed to always be recoverable.

    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: Where Statement - Case Statement

    Something like this should work

    table1.column1 - (CASE WHEN DATEPART (DW,GETDATE()) = 2 THEN 4 ELSE 0 END)

    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 Model database files missing, inaccessible or corrupt - The SQL Server Instance That Will not Start

    SQLSACT (8/13/2015)


    Perry Whittle (8/13/2015)


    SQLSACT (8/13/2015)


    Could you perhaps shed some clarity on why I had to follow this procedure to get model restored?

    Because you didn't copy the files from a working...

    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: Trigger not working properly...

    There's a number of things wrong here.

    Firstly you're not using the inserted pseudotable, instead depending on some column in the table. Use inserted to get the inserted rows and new...

    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 to remove single query plan from cache - SQL 2000

    exec sp_recompile 'ProcedureName'

    That said, rebuilding indexes invalidates all plans using the rebuilt indexes and will force a procedure to recreate it's plan. Hence it's likely that recompiling won't fix things...

    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?

    Luis Cazares (8/12/2015)


    jasona.work (8/12/2015)


    So, my laptop offered me the Win10 upgrade. I figured I'd sign up for it (laptop was recently reloaded to Win7 Pro) and worst case I...

    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: Shrinking a Transaction Log file (BMC Remedy environment)

    Do the ALTER DATABASE before you take the DB offline.

    1) Run Alter Database ... Modify File

    2) Take the DB offline

    3) Physically move the files

    4) Bring the DB online

    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: Login failure - unable to connect to sql server using windows authentication

    vsamantha35 (8/12/2015)


    Gail, you are absolutely spot on. But what kind of information do I need to share with the AD admins?

    I mean what kind of conversation do I need 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: cpu&memory utilization for the past week

    Look at a perfmon counter set which was started at the beginning of the week. If you didn't start one a week ago and don't have a third party tool...

    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: issue with or statement

    Yup. Completely equivalent.

    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?

    Lynn, I think that may have been unnecessarily antagonistic.

    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 DB Space issue

    You can't.

    SQL doesn't keep track of the insert time of rows. To delete from a table based on the age of the row, you need a column which records 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: Triggers Logging

    Gazareth (8/12/2015)


    This will give you some info on the triggers & aggregated execution stats.

    Bear in mind that the exec_trigger_stats DMV depends on the trigger's plan being in cache. If 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: PRINT bug ?

    mar.ko (8/12/2015)


    Well guys, not one of you provided a solution.

    Two people explained to you why you were getting null in your print. Your question read as 'why is this happening',...

    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 Model database files missing, inaccessible or corrupt - The SQL Server Instance That Will not Start

    Copy the files from a working instance, then restore.

    TempDB can't always be recovered, because it's not designed to be recovered on startup, but that's what the traceflag forces. So when...

    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 - 5,026 through 5,040 (of 49,552 total)