Forum Replies Created

Viewing 15 posts - 7,366 through 7,380 (of 49,552 total)

  • RE: Can we created composite NonClustered index on the columns INTETER and VARCHAR ?

    Yes you can.

    Drawbacks?

    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 Memory usage is high

    Not a bug. CLR uses memory outside of the limit set by max server memory. You must have some memory-intensive CLR. Chat with the devs, make sure they're not doing...

    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: Shrinkfile - Log

    M Joomun (10/29/2014)


    Ed Wagner (10/29/2014)


    I hope you don't have any critical data being stored on a user's local drive. I know you said it's a political situation, but storing...

    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 mdf

    If you have three data files in three separate filegroups, no you can't. If you restrict growth on the mdf and it's the only file in the PRIMARY filegroup, 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
  • RE: Shrinkfile - Log

    Take a read through these:

    http://www.sqlservercentral.com/articles/Administration/64582/

    http://www.sqlservercentral.com/articles/Transaction+Logs/72488/

    I suspect you have a DB in full recovery and you're not taking log backups. In that case the log will grow until it fills 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: DB Mirroring Alternative?

    louie1487 78804 (10/29/2014)


    Can't use the remove band-aid approach. I already got shut down on that idea.

    To be honest, I'd push back on this, hard.

    Peer-to-peer replication is about the only thing...

    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: View column that checks if table's int column is null, enters a boolean value in the view column instead of the int value

    ISNULL (IntegerColumnName, ReplacementValue)

    The data type returned will be the 'larger' of INT and whatever the replacement value is.

    btw, SQL doesn't have booleans. It has the bit data type which 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: Varchar(MAX) column as included column in an index

    Matthew Darwin (10/29/2014)


    Does it duplicate the LOB data

    Yes.

    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: Show missing date

    Well you need something that has all dates in it that you can join 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: Show missing date

    Use a calendar table, left join from the calendar table to your data table (because you want all the rows from the calendar and matching rows from the data table)

    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 - Configuration

    Just a comment on this...

    NEVER update the system tables. You can't touch them in most circumstances, it's very easy to make mistakes and break things and, by updating the system...

    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: My queries no longer work after upgrading to SQL Server 2014 from 2008 R2

    Why do you need to wrap that query in a distributed transaction?

    Have you checked to see what error DTC is actually throwing?

    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: Why does a database go to suspect mode?

    jacksonandrew321 (10/29/2014)


    improper shutdown of the sql server services,

    Not unless the files are damaged in the process. SQL is perfectly capable of recovering from unexpected shutdowns

    not enough disk space 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
  • RE: Why does a database go to suspect mode?

    Sapen (10/28/2014)


    Also are there any specific causes that will take a database into suspect mode?

    SQL encounters a corrupt or unreadable page while doing a transaction rollback or crash recovery. Details...

    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?

    rodjkidd (10/28/2014)


    Less that 24 hours for my flight to Seattle...

    This album seems appropriate seeing as it took me all week last time to find him! 😀

    Rodders...

    My theme tune for 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

Viewing 15 posts - 7,366 through 7,380 (of 49,552 total)