Forum Replies Created

Viewing 15 posts - 46,156 through 46,170 (of 49,552 total)

  • RE: How to find latest executed query in sql server 2000

    Profiler or a server side trace.

    If you want to see the queries within the procs, you want the sp:StmtCompleted event.

    Be aware that if your server is busy the trace...

    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: One table how many fields create?

    Depends on the queries that use that table. There's no hard rule.

    You should have a clustered index. You should have enough nonclustered indexes on different columns that the frequently run...

    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: Data error (cyclic redundancy check) failed. with 24 consistency errors

    Do you have a backup of that 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: How to clear stored procedure catch memory in run time

    What's 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: how to remove bookmark lookup through execution plan

    Main difference between 2000 and 2005 is that in 2005 you can alse add columns as INCLUDE columns insted of as part of the key. Makes it a lot easier...

    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 find latest executed query in sql server 2000

    Ah. A form of serverside trace.

    I thought for a moment that I'd missed a feature like 2005's default trace. :hehe:

    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 can I Prevent The Stopping of SQlServiceAgent or other services related to SqlServer from my Application

    Mscode_Pro (6/19/2008)


    So the two ways are impossible

    What ways are impossible?

    I'll be wait for any solutions

    Be patient. We're all volunteers here. We're not paid to answer forum questions.

    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: TuningProc

    <eyes glaze over> Right....

    In addition to Grant's comments...

    You have a lot of branching logic within the proc (if.. else...).

    That kind of thing tends to lead to sub-optimal execution plans,...

    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 find latest executed query in sql server 2000

    Grant Fritchey (6/19/2008)


    I'd have to hit the 2000 books online, but you might be able query the procedure cache (I know exactly how in 2005, but it's different). Try looking...

    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: In SQL2k msdb marked suspected

    Do you have a backup of msdb?

    If you look in the SQL log file (the error log), are there any entries that indicate why the database is suspect?

    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 remove bookmark lookup through execution plan

    Bookmark lookups occur when SQL uses a nonclustered index to evaluate the rows required for a query. If the nonclustered index does not contain all the columns needed for 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: How can I Prevent The Stopping of SQlServiceAgent or other services related to SqlServer from my Application

    Make sure that the users who use the appliction don't have rights to stop services (not SQL permissions, windows level permissions). Make sure no one but the server admins can...

    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 gone haywire

    Different join means a different execution plan. SQL probably generated one that doesn't have the same massive internal tables.

    Can you post the plan with the outer join? I'd like 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: datetime: 1245-03-05

    Vladan (6/18/2008)


    The data types in Inserted are the same as in the actual table.

    Good point. Would need 2 columns then. 1 a varchar that the insert puts the 'date' into,...

    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 many service packs there in sqlserver 2005,2008

    Service packs for which version of SQL? 7, 2000, 2005?

    As for what differes, there's no single answer to that. Each of the service packs for each version fixes different things....

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