Forum Replies Created

Viewing 15 posts - 41,881 through 41,895 (of 49,552 total)

  • RE: LOCK problem

    sampathsoft (1/8/2009)


    i'm making transaction base software using sql 2000 . In my program i want to stop insert,update and delete when another user modifying same record set at same...

    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: msdb sysindexes -repair

    Can you please post exactly what you get by running the following:

    DBCC CHECKDB('msdb') WITH NO_INFOMSGS, ALL_ERRORMSGS

    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: to INCLUDE or not to INCLUDE

    winston Smith (1/8/2009)


    the actual clustered index/heap never needs to be accessed. am i correct in this idea?

    Correct, all the info is in the index.

    if this is the only index 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: SQL Server is stoped unexpectedly??????

    What does the error log say? It should have some info about the shutdown, and it will have a lot of info about why the service won't start up.

    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 do I solve 2005 workgroup deadlocks

    Turn traceflag 1222 on (DBCC TRACEON (1222,-1))

    Any deadlocks that occur will have the deadlock graph written to the error log. The deadlock graph will have enough information to locate...

    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 a tables column listing with keys

    sys.tables, sys.columns, sys.foreign_keys, sys.foreign_key_columns, sys.indexes where is_primary_key=1, sys.index_columns

    It's a nasty, very large query, but those are the tables needed. If you get stuck, post the query that you have.

    One other...

    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 it possible to move database from sql server 2005 to server 2000 ..??

    To add on to what Barry said, there is no way to take a backup of a 2005 database and restore it on 2000, nor is it possible to detach...

    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: Bookmark Lookup

    Peter D (1/7/2009)


    It may be hard to change this one as there are many jobs and Online processing using the tables and current indexes. Not much was...

    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: urgent query

    Lowell (1/7/2009)


    if you had read the chapter or listened to the lecture in class....

    Yeah, probably.

    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 issues with SQL Server Stored Procedures

    Eeep. That's a lot of execution plans.

    I'm not looking at all of them. That'll take hours.

    A few highlights:

    Exec plan 3:

    The country table needs an index. CountryID INCLUDE name, or,...

    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

    Lynn Pettis (1/7/2009)


    GilaMonster (1/7/2009)


    Lynn Pettis (1/7/2009)


    hmmm, a question I sense here but not sure what you want.

    Are you channelling Yoda again?

    Sorry, caught a couple of the Star Wars movies 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: sql query

    Lynn Pettis (1/7/2009)


    hmmm, a question I sense here but not sure what you want.

    Are you channelling Yoda again?

    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: urgent query

    IF EXISTS (SELECT 1 FROM SomeTable WHERE SomeKey = @SomeValue)

    UPDATE ...

    ELSE

    INSERT ...

    Edit: The question was (paraphrased)

    If I have a table and I want to check based on a...

    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: Lost MDF file but I have LDF file

    RBarryYoung (12/31/2008)


    [h2]If your data is important to you then Back It Up![/h2]

    And to add to that.

    Any backup not tested cannot be considered a valid backup. If it's worth backing...

    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: to INCLUDE or not to INCLUDE

    Steve Jones - Editor (1/7/2009)


    Why wouldn't you put all the columns in the index? This has puzzled me from day one. The index size is essentially the same in either...

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