Forum Replies Created

Viewing 15 posts - 46,696 through 46,710 (of 49,552 total)

  • RE: sql server does not use index without hint

    The optimiser's very good usually. This is just an edge case where its estimate is wrong. Possibly because the table's a heap, not a cluster.

    If you don't have a clustered...

    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 DBREINDEX and Logical Fragmentation

    I can't remember offhand. I did read it somewhere.

    I think it's around 100 pages, but don't quote me on that. I'll see if I can find the source article tomorrow.

    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: Performance Problem

    Depends how much usage your tempDB gets. How big is the file set for now?

    For the proportional fill to work, all the files should be the same size, so autogrow...

    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 there anyway to find out if the hacker had done something to the database?URGENT

    Good point. What kind of data is in this database?

    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: Schema Permissions Problem

    What error do you get when you try to 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: DBCC DBREINDEX and Logical Fragmentation

    Because fragmentation has very little meaning on such small tables. Logical fragmentation is defined as the number of out of order pages. With only 1 page in the table it's...

    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 does not use index without hint

    Ok.

    My guess. As far as the optimiser's concerned, the query returns too many rows for a seek/bookmark lookup to be optimal, and the index is not covering. Hence it uses...

    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: Performance Problem

    Q (5/5/2008)


    • Create many files to maximize disk bandwidth and to reduce contention in allocation structures. As a general guideline, create one data file per CPU. Each 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: Is there anyway to find out if the hacker had done something to the database?URGENT

    The consider yourself lucky you still have a database.

    If you want recommendations for your boss -

    Change the web user to have the minimum required privileges

    Go through...

    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 there anyway to find out if the hacker had done something to the database?URGENT

    Google 'SQL injection' then fix the web front end so that it checks input and uses parameters properly.

    Forget delete statement. What if it had been a drop table or drop...

    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 does not use index without hint

    Can you post table schema, index definition, query and aprox rowcount affected by the query please?

    It's probably because the index is not covering, and query affects enough rows that 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: Get First row value

    You need some column that defines which status is first for each code.

    You cannot depend on the order that the rows are returned as that will change.

    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: Performance Problem

    Pleasure. I don't bother bookmarking all the white papers, just use this rather.

    http://www.sqlskills.com/whitepapers.asp

    I don't know offhand of the article on why 1 file/cpu. Perhaps on the PSS engineer's blog? http://blogs.msdn.com/psssql

    Soem...

    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: Anonymous Access in Report Server

    SQL King (5/5/2008)


    ( I am sorry if some of you have already seen this in other topic of this forum, I just want to get as many response as I...

    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: Anonymous Access in Reports/IIS settings

    SQL King (5/5/2008)


    ( I am sorry if some of you have already seen this in other topic of this forum, I just want to get as many response as I...

    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 - 46,696 through 46,710 (of 49,552 total)