Forum Replies Created

Viewing 15 posts - 41,506 through 41,520 (of 49,552 total)

  • RE: Returning rows 2-10

    gavin.duncan (1/22/2009)


    The table has a user-defined column called Sequence, its to be ordered by that. Im having a look at Row_Number as we speak.

    SELECT * FROM (

    SELECT *, ROW_NUMBER() OVER...

    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 Shrinkfile to a size not working - why ?

    ifila (1/22/2009)


    Dumb question, but why do you need seperate full and log backups ?

    I'm not saying you need to separate them. I'm saying they're separate things.

    Please read through this...

    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: working with union all or union

    lucassouzace (1/22/2009)


    ok, but this example, the query using union all more better union do you think ?

    In your specific example, because there are no overlaps (rows in more than one...

    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 Shrinkfile to a size not working - why ?

    ifila (1/22/2009)


    I run a full database backup each day, and have about one weeks worth of daily backups.

    Log backups? In full recovery, full backups alone are not sufficient.

    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: Returning rows 2-10

    gavin.duncan (1/22/2009)


    OK, I'm trying to write query which will return the rows 2-10 from a table. Essentially the top ten, minus the top result.

    Row_Number is what you're looking for. Rows...

    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: Keeping user database in memory

    serge.kovacs (1/22/2009)


    while the DB itself is taking almost 2 GB now, and is still growing.

    That's tiny. 🙂

    Do you think it could help to increase the amount of RAM...

    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: beginner query ...i'm lost !

    The best way to post the table definitions is as create statements, so that the people who are trying to help you can easily create those tables to test out...

    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 Corrupt

    Hadrian (1/22/2009)


    check status in sysdatabases must be suspect for corrupted mdf files

    Not necessarily. There are many forms of corruption that won't result in the DB been marked suspect. That's pretty...

    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: Need REST, mashups, Struts training and other specific Java related info

    vaibhavi5575 (1/22/2009)


    My projects includes working on Java and Ruby on Rails and Ajax. I think Web Services is really cool.

    You may get better advice on a forum that caters...

    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 Corrupt

    Run checkDB and see if it gives you any errors. There are a lot of possible errors that checkDB will give back, so I won't try and list them.

    Is this...

    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: beginner query ...i'm lost !

    I'm not sure I fully understand your requirements.

    Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    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: Rebuild Index and .mdf file growth.

    Rajesh kasturi (1/22/2009)


    Thanks for your reply, While rebuilding the index log file will be used or data file will be used.

    Both. The data file because that's where the 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: Keeping user database in memory

    serge.kovacs (1/22/2009)


    When the application needs to restart things go bad. It takes about 30 minutes to load up all the data because the SQL Server has to load up 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: getting errors continuosly in the error log

    Suggest to the sharepoint admin that it would be better to take backups to the local disk and later move them to a network share?

    If that's not an option, ensure...

    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 Shrinkfile to a size not working - why ?

    ifila (1/21/2009)


    Not looking for an argument, but why does MS offer a shrink capability if it is a bad idea ?

    Because there are times when it's necessary. Note that...

    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 - 41,506 through 41,520 (of 49,552 total)