Forum Replies Created

Viewing 15 posts - 44,461 through 44,475 (of 49,552 total)

  • RE: Index defragmentation

    How big are the tables in question? How many pages? (you can see that from the full output of index physical stats)

    My guess is that the tables are very small...

    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: nvarchar max problem

    Can you post the code please? There are places where you would have to explicitly cast as varchar/nvarchar(max) or be cut off at 4000/8000 characters. Considering the length is...

    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: Error converting 'None' to int

    bcronce (9/16/2008)


    I though SQL stops executing an AND statement once 1 comparison returns false.

    Depends on the plan the optimiser comes up with. Sometimes it does, sometimes it doesn't. The order...

    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: Missing Indexes in SQL Server 2005

    kevriley (9/16/2008)


    GilaMonster (9/16/2008)


    It doesn't take into account existing indexes

    Gail, can you explain what you mean ??

    Kev

    If there's an existing index on a table on (for example) columns A, B, C...

    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: Error: 18456, Severity: 14, State: 16.Login failed for user 'sa'. [CLIENT: XXX.XXX.XX.XXX]

    Can you check the connection string that the app uses, see if it specifies an initial database. Also check what the default database is for sa.

    A properly set up account...

    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 taking more time to execute and causing time out error

    Can you please post the table definitions, the index definitions and the execution plan?

    To get the exec plan on SQL 2000, run the query with SHOWPLAN_ALL on, run to grid,...

    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: Update Stats with full scan on all tables in all databases

    Perry Whittle (9/16/2008)


    sunshine (9/15/2008)


    the previous statement must be terminated with a semicolon.

    this message is fairly descriptive!! The USE statement and exec must be separated by a semi colon like so

    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
  • RE: SQL Saturday #8 - Orlando Florida

    Brandie Tarvin (9/16/2008)


    WHOO HOO! I've had 2 sessions accepted!

    Congrats. Is this your first time speaking?

    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: Error: 18456, Severity: 14, State: 16.Login failed for user 'sa'. [CLIENT: XXX.XXX.XX.XXX]

    State 16 means that the default DB or the DB requested by the login is not available. Check what DB the app in question wants and make sure that 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: log files

    Do you know why the transaction log is growing? If you have regular log backups, it should not be continually growing.

    Query the sys.databases view and see what the log_reuse_wait_desc column...

    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: Transaction (Process ID 59) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction

    Unless you had one of the traceflags on or a profiler trace running with the deadlock events, there's no way to tell now what happened.

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

    What's filling up the drive? The log files themselves (.ldf) or the log backups?

    What else is on the drive?

    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: Missing Indexes in SQL Server 2005

    The missing indexes DMVs are reset when the server starts. They can't be modified by a user.

    One thing I would like to add is that the missing indexes DMVs should...

    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: Transaction (Process ID 59) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction

    Enable traceflag 1222 (DBCC TRACEON (1222.-1))

    With that on, a deadlock graph is written to the error log when a deadlock occurs. You can read through the graph to see what...

    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: Type lengths

    Because none of the strings you have there are reaching the 30/40 character limit for the varchar. The ISNULL returns for the first query a data type of VARCHAR(30) and...

    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 - 44,461 through 44,475 (of 49,552 total)