Forum Replies Created

Viewing 15 posts - 47,491 through 47,505 (of 49,552 total)

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems in SS 2k/2k5

    TheSQLGuru (2/1/2008)


    Which we could figure out a way to do the read-along scan test on a huge table in enterprise edition too. Perhaps one of you guys...

    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: Help with speeding up a query causing timeouts.

    Rob Reid (1/31/2008)

    3. At what number of indexes on a table does it become total overkill.

    There's no hard and fast number. It depends on the datba and the data....

    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: transactional log

    Unused = free

    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: Help with speeding up a query causing timeouts.

    Yup.

    The whole issue of 'most selective column first in an index' is a bit misleading. SQL can, and does, do multi-column seeks as one operation. What you want is 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: Primary Key and Unique key

    With a clustered index, the leaf pages of the index are the data pages. Yes, they are in the order of the index keys.

    This means that the clustering key...

    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: transactional log

    litu deb (2/1/2008)


    I know how to shrink whole database and also individual file.

    DBCC shrink database to shrink the whole database. DBCC ShrinkFile to shrink individual files

    I would like to know...

    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: SubQuery returning more one record

    Give this a try. Plese note, it is untested. I don't have your tables or data. It passes a syntax check, but that's all I could do.

    Changes are in red.

    Select...

    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: Primary Key and Unique key

    I'm sorry, I'm not sure I understand your question.

    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 Easy Poll

    Give me SP3!

    We're currently pushing to get the 5th cumulative update on one of our servers (cause we keep running into a problem that was fixed in SP2 and fixed...

    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: Help with speeding up a query causing timeouts.

    SELECT @NoFeaturedJobs = count(JobPK)

    FROM JOBS

    WHERE ClientFk = @ClientPK AND

    SiteFk = @SitePK AND

    FeatureScore BETWEEN 1 AND 5 AND

    Live = 1

    In general, for covering indexes, you want the columns in the following...

    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: clientprocessid in profiler

    Tony (1/31/2008)


    From SQLHelp.

    Such as looks like SSMS always have ClientProcessID = 1000, true?

    No. Depends on what other apps are running on the client, and when SSMS was started. Open task...

    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: Solving the "Running Total" & "Ordinal Rank" Problems in SS 2k/2k5

    Jeff Moden (1/31/2008)


    However, the engine has no obligation to scan the table in index order, as there are no language constructs which impose an ordering on the execution order of...

    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: Primary Key and Unique key

    You can only have 1 primary key per table, but you can have many unique keys

    Primay keys cannot have nulls. A unique key defined on a nullable field can have...

    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: help needed with stored proc....

    Matt Miller (1/31/2008)


    I don't know about what your process is - but all of the built-in encryption functions, even the ones in 2005, are wholely inadequate for storing Credit card...

    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: Application role restriction

    You could revoke all the table permissions and insist that all data access is via stored procedures. In the stored procs you can check the application name. You can also...

    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 - 47,491 through 47,505 (of 49,552 total)