Forum Replies Created

Viewing 15 posts - 3,676 through 3,690 (of 49,552 total)

  • RE: Query results

    Table definitions (as CREATE TABLE statements) and sample data in an easy to use format (INSERT statements) please.

    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: Maximum INSTALLED Instances - SQL Server 2008 Ent R2

    Please note: 5-year old thread

    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: 3 select in one SP

    You've given them names. First and Second in your code example. You can reference them by those names in the last query.

    What are you trying to do?

    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 log corrupeted

    dxu (2/2/2016)


    The interesting thing is I have restored the full back up into another database and I can shrink the log without any problem.

    Not at all a surprise, since...

    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?

    jonathan.crawford (2/2/2016)


    Now it's not a db design class, but still, we should at least be attempting to teach students rather than handicap them, right? They'll screw up enough on their...

    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 many versions ahead do deprecated_feature announcements go?

    jasona.work (2/2/2016)


    According to MSDN, if I don't set a database to level 120 (110 or lower,) then the engine will still use the old estimator, so I'll avoid any problems...

    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: Upgrading to SQL Server 2008R2

    You can't do an in-place from 32-bit to 64-bit iirc. You'll need to either install a new instance and move the DBs across or uninstall the old and install 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: 3 select in one SP

    Remove the first two maybe? If you don't need their results, don't put them in the procedure.

    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 Upgrade Question

    dajonx (2/2/2016)


    So once I restore the backup, I can just change the compatibility to 130 and that should be it, right?

    Should be it to start...

    and starting the testing now (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: SQL Server Upgrade Question

    curious_sqldba (2/2/2016)


    Very interesting, during PASS 2015 a very senior and well know MVP told us that you could upgrade only up to 2 editions.

    Replication has a 2-version limit. Upgrades,...

    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: Will restoring master db restore the droped Linked servers

    Yes, but it would be easier to script out the linked servers before dropping them and keep the script somewhere safe.

    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: truncating and sizing log files

    DamianC (2/2/2016)


    Won't resizing down to 1MB then growing back to 80GB every night slow the process down (especially with 100MB autogrow) and, from what I have read, cause serious fragmentation?

    Yes.

    Is...

    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 log corrupeted

    Run checkDB to be safe.

    If it's just the log, the usual solution to that is to, during a maintenance window:

    Switch the DB to simple recovery

    Shrink the log file to 0

    Resize...

    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: passing GUID to a stored procedure

    You don't need DECLARE, CONVERT or CAST.

    EXEC SimpleGUIDTest '00000000-0000-0000-0000-000000000000'

    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 DB with Full and T-log vs. Full, T-log and Differentail

    You can, it'll work fine.

    Or, if there was a differential backup at midnight, you could restore the 9pm full, the midnight diff and the logs until 1:15

    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 - 3,676 through 3,690 (of 49,552 total)