Forum Replies Created

Viewing 15 posts - 34,591 through 34,605 (of 49,552 total)

  • RE: Assign CPU to OS

    Henrico Bekker (1/19/2010)


    As far as I know, it's 1 temp datafile per CPU Core....

    Depending who you ask it's anything from 0.25 files/core to 1 file/core. But that's just the optimum...

    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: how to retrive row id from a table

    Bhuvnesh (1/19/2010)


    amar , try to run the script i pasted in my previous past and u will find reply

    The Row_Number function is not the same as the RowID that Oracle...

    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: Including a primary key in a nonclustered index in SQL Server 2005

    Bhuvnesh (1/19/2010)


    if you see above example , Primary key is made with non clustered key forcibly on "secondaryindex " filegroup

    WHILE

    Clustered index on other filegroup "secondarydata" filegroup

    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: Some general questions

    Can you repost that deadlock graph so that it's readable please. Either attach the xml file that profiler produces or use traceflag 1222 and post the output of that.

    The 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: how to retrive row id from a table

    amitsingh308 (1/19/2010)


    But I know in Oracle n mysql provides an Id for each row so that I was just conforming is there any thing like that is sql...

    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: Including a primary key in a nonclustered index in SQL Server 2005

    I don't understand what you're asking. Adding another column to an index to make it wider/covering has absolutely nothing to do with where in the files the indexes are stored....

    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: Including a primary key in a nonclustered index in SQL Server 2005

    Bhuvnesh (1/19/2010)


    The query optimizer for SQL Server 2005 is suggesting that we include a primary key as part of a nonclustered index. Is it OK to include that to increase...

    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: Assign CPU to OS

    Don't play with the CPU affinity unless you have a really good reason. In most cases it should be left at default.

    The number of data files is not linked 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: how to retrive row id from a table

    SQL Server does not have a 'row ID' assigned to each row by the DB engine. Oracle may (I think), but SQL doesn't.

    What problem are you trying to solve...

    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: Delete, deletes an entire table

    Is there a question here, or is this an observation?

    You can always reference a column from an outer table within a subquery. It may look odd, but it is valid...

    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: Try to find correct Syntaxt of query

    From what I recall from SQL 2000, you cannot assign the results of a FOR XML query to a variable.

    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: Query to find a blocing id/ spid

    select session_id, blocking_session_id from sys.dm_exec_requests

    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 Scenario

    That's good to know. Can you change the isolation level in the linq? If you do, does it fix the deadlocks?

    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: Problem about INDEX

    Your first index is covering. That means that all SQL has to do to completely satisfy the query is to do an index seek.

    The second index is not covering. 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: SQL Query

    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

Viewing 15 posts - 34,591 through 34,605 (of 49,552 total)