Forum Replies Created

Viewing 15 posts - 5,581 through 5,595 (of 49,552 total)

  • RE: Indexing Dates

    It won't crash. If you exceed the limit, you'll get an error.

    That said, you probably want to do that kind of crosstab in the application tier, the built in...

    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: deadlock error msg 1205

    Traceflag 1222 is to get the deadlock graph written to the error log.

    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: Indexing Dates

    yb751 (6/16/2015)


    If so than you could (ironically) make use of the LAG function. Otherwise Jeff's solution will work just fine.

    Unless I'm missing something, LAG won't produce the results he...

    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: Indexing Dates

    In that case, can you please post some sample data with the gaps that you expect and show what the results you want are?

    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: Indexing Dates

    pederson1234 (6/16/2015)


    great thanks...Also what is the maximum number of columns that can be used in a large data set? "Large" meaning 5 columns by 20 million rows?

    Errr????

    The limit 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: log file does not match primary file

    karend211 34657 (6/16/2015)


    I have one other question... Is mirroring an effective solution to implement a standby database in case of corruption?

    It's part of a solution.

    No, if you get corruption...

    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 Core vs Full blown version of SQL Server

    DeWayne_McCallie (6/16/2015)


    Wow I'm on the MSDN download site and there is a download with that name (I have already downloaded it). I must be tripping!

    You're right, there is.

    It's Core-licensing...

    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 file does not match primary file

    karend211 34657 (6/15/2015)


    We do sql database snapshot backups through a third party software on hourly intervals.

    Check your SQL error log. Unless you see messages in the log corresponding to those...

    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 file does not match primary file

    Copying files is not a backup strategy because, unless the tool copying the files syncs with SQL Server, the 'backed up' files may very well be useless.

    You need to put...

    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: Memory allocation rule of thumb

    Chapter 4: http://www.red-gate.com/community/books/accidental-dba

    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: dbcc check db errors - Urgent help

    If you don't care about the database, drop it.

    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 lost transaction from Transaction log file

    keshab.basnet (6/13/2015)


    DB crashed means user production user data file is not working.

    Which means what exactly?

    And it's kinda important because depending on exactly what you mean by 'not working', we...

    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: dbcc check db errors - Urgent help

    DO NOT take the database offline!

    Please post the full and complete, unedited output of

    DBCC CheckDB('<Database name>') WITH NO_INFOMSGS, ALL_ERRORMSGS

    Do you have a clean backup?

    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: DBCC Checkdb - Filling up tempdb log file - Wrong tempdb estimates

    Not sure, but I suspect it'd be data file usage.

    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 Core vs Full blown version of SQL Server

    Welsh Corgi (6/12/2015)


    So use the command line for everything?

    Hell no. Use SSMS from a client machine. There's pretty much no case I can think of where you'd need to use...

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