Forum Replies Created

Viewing 15 posts - 3,946 through 3,960 (of 49,552 total)

  • RE: Shrink Database

    You don't need to shrink the file. Once you've deleted the logging info, SQL will reuse the space in the data file.

    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: Attaching a file from Network Location

    Ack, didn't notice that the 'not supported' list is for system database locations.

    But still, you don't need to go to the extra effort of mapping a drive that the 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: Doubt in isolation level

    SNAPSHOT is the row-versioning equivalent of SERIALIZABLE, so probably whatever requires the lock in SERIALIZABLE also requires it in case anyone's running SNAPSHOT and doing (probably) a mod to 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: the use of CTEs

    They're very useful when writing complex queries. Write a basic query, turn it into a CTE, write the next query off that, etc. Easier debugging too, as at any point...

    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 in isolation level

    It's an optimisation, SQL can tell that you're updating a column to itself and hence doesn't take the locks. I can't remember what the transaction log entry looks like 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: How to repair/recover/restore backup file on SQL sERVER 2012

    johnwalker10 (12/22/2015)


    Try DBCC CHECKDB with parameters REPAIR_REBUILD or REPAIR_ALLOW_DATA_LOSS to fix the corruption of your database.

    No! No! No! No! No! No! No!!!!!!!

    Suggesting what is the absolute last resort, and can...

    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: Attaching a file from Network Location

    sri2015 (12/23/2015)


    EXEC XP_CMDSHELL 'net use H: \\foldername1\foldername2\sharedfoldername3'

    EXEC XP_CMDSHELL 'Dir H:'

    EXEC XP_CMDSHELL 'net use H: /delete'

    Nope!

    SQL does not support mapped drives for database files, just the //server/share format, as...

    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 it truly important to clean up connections in a "sleeping" state?

    Larry Kruse (12/22/2015)


    Other than just general tidiness, why would it be important to clean out those (apparently) stalled connections/sessions?

    It's not.

    Sleeping connections are doing nothing. Other than taking a couple...

    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: Database Stuck in Restore Mode

    itguy2015 (12/22/2015)


    I prefer to have the cancel run to completion and have mydb on vm2 remain as it was before I started the restore.

    You could leave it from now until...

    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 2008 R2 Standard Edition backup encryption

    anthony.green (12/23/2015)


    The only thing I would suggest is to look at TDE (Transparent Data Encryption) https://msdn.microsoft.com/en-us/library/bb934049(v=sql.105).aspx

    Which is an Enterprise edition feature.

    With Standard edition, you'll need a 3rd party backup 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: Are the posted questions getting worse?

    Oh that one. I saw it before it went off the rails and decided I didn't want to get involved.

    Still, it's working so it can't be impossible... *angel*

    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: Please Suggest Partition boundaries

    Narendra-274001 (12/22/2015)


    How about the - Having millions and millions of rows in a single partition

    Not by itself an indication for partitioning. Now, if you want to use fast swithing 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: Are the posted questions getting worse?

    Eirikur Eiriksson (12/22/2015)


    One recent poster kept asking over and over again why he was getting an error whilst trying to do something he'd already been told was impossible, had 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: LOG Files

    I suggest you read this: http://www.sqlservercentral.com/articles/Administration/64582/

    Then, once you've finished, read this: http://www.sqlservercentral.com/articles/books/94938/

    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: Attaching a file from Network Location

    Yes.

    https://msdn.microsoft.com/en-us/library/hh759341.aspx

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