Forum Replies Created

Viewing 15 posts - 46,261 through 46,275 (of 49,552 total)

  • RE: how can i fully close all realated things to a database to prevent an Exception says "datebase is used" when i detach it by T-SQL

    I'm still not understanding the reason for the detach. If your security is set up properly, a detached database is no more secure than an attached one.

    Still....

    You're probably getting...

    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

    UDBNT (6/11/2008)


    Not sure on the validity of (nolock) on a table where you are deleting data?

    The hint will be ignored. Deletes have to lock exclusivly, lock hints or no lock...

    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 make the database unusable to detach it from my application

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

    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

    Index definitions?

    Has the total number of rows in the table changed since this worked properly?

    Are your indexes fragmented? Are the statistics out of date?

    I'm not asking just to be 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: Delete

    how many rows is that delete likely to affect?

    What indexes do you have on the 2 tables?

    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: A place for everything

    Dave (6/10/2008)


    Why do people always say, "take them out and shoot them"? Shouldn't you blast them where they stand, and leave their lifeless bodies crumpled on the floor in...

    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: Index size shows larger than entire database

    Try DBCC UpdateUsage

    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 Limitations?

    Please don't cross post. It wastes people's time and fragments replies. Many of us read all the forums.

    No replies to this thread please. Direct replies to

    http://www.sqlservercentral.com/Forums/Topic514754-8-1.aspx

    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: SET STATISTICS TIME ON - how to read the results?

    riga1966 (6/10/2008)


    What is this Table 'Worktable'?

    Is it because it's SQL 2005?

    It's a temp table created and used by the query processor to store portions of the result set during processing....

    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: A place for everything

    Firstly, I would suggest you take the people responsible for that absurd standard out and shoot them repeatedly. 😉 :hehe:

    Seriously now...

    How active is the db in question? (transactions/sec)

    Is it more...

    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 using variable performs poorly

    It can, but then you have all the downsides of dynamic SQL. (permissions, proc cache growth, possible SQL injection)

    For something like this, probably 2 procs is easier. For something like...

    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 Help, find avg of top 3 most recent months fast slow days

    So you want something like this?

    Customer Avg

    1234 -2

    2345 0.33

    9999 ...

    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 we see long running queries with Tsql

    There's no 2000 equivalent for that. Your query checks the plan cache and retrieves the reads and writes for queries that have run in the past whos plans are still...

    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: SET STATISTICS TIME ON - how to read the results?

    Probably IO_Completion or Async_IO_Completion

    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 Spirals Downwards

    Most likely you have a mixture of badly written queries and inadequate indexes. There's no quick fix for this. If it's as critical as you say, you may be best...

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