Forum Replies Created

Viewing 15 posts - 17,131 through 17,145 (of 49,552 total)

  • RE: Restore error from backup file SQL2000

    ???

    When you restore a backup (from any version of SQL) it recreates the DB as it was at the time of backup, same number of files, same things in 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: AppDomain 12 (mssqlsystemresource.dbo[runtime].11) is marked for unload due to memory pressure.

    Please don't start multiple threads for the same problem.

    No more replies here please. Direct replies to http://www.sqlservercentral.com/Forums/Topic1343237-391-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: Restore error from backup file SQL2000

    In your restore script, make sure that every file has a different physical file name. In the one you have, the mdf appears twice and the ldf appears twice. Specify...

    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: AppDomain 12 (mssqlsystemresource.dbo[runtime].11) is marked for unload due to memory pressure.

    Start by setting max server memory to a sensible value.

    Chapter 4: http://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/

    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: Remove permissions on sysobjects table for db user sql 2012 like in ms sql 2000

    sqlservercentral 58005 (8/16/2012)


    Thanks for the reply, and forgive the newb questioning.

    select * from sys.objects when logged in as website user gives a list of tables.

    That means he has some...

    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: Sleeping mode issue

    As I said...

    GilaMonster (8/16/2012)


    That's not the CPU they are using. That's the total CPU that they used since connecting.

    A sleeping connection does not use any CPU. The CPU 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: UPDATE when the values are the same

    Update runs = query execution engine processes the update plan that was generated by the query optimiser. Runs the various operators in the query plan

    Value changed by the query execution...

    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 Plan Cache

    They're not 2 plans for the selects. I already said what's happening.

    I strongly suggest you go and read SQL 2008 internals, chapter 9.

    Repo:

    DBCC FreeProcCache

    go

    CREATE TABLE t1 (

    Col1 INT,

    Col2 DATETIME DEFAULT...

    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: Restore error from backup file SQL2000

    You can't. A restore must recreate the DB as it was at the time of backup. Once restored you can then go and move objects and drop files.

    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: Sleeping mode issue

    That's not the CPU they are using. That's the total CPU that they used since connecting. The CPU was used when they ran queries. No CPU is used for 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: SQL Plan Cache

    Be careful, cached plans will show the unparameterised plan shells as well as the parameterised plans, your filter's eliminating the parameterised plans.

    -- AND cp.objtype = 'Adhoc'

    As I said, you need...

    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 Plan Cache

    A query complex enough that it doesn't qualify for autoparameterisation (and this is the point where you go to BoL to see what autoparam 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: SQL Plan Cache

    In that trivial case, if they are submitted in 3 separate batches, there will be one plan (autoparameterised) used 3 times.

    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: Remove permissions on sysobjects table for db user sql 2012 like in ms sql 2000

    In SQL 2005 and above, unless a user has some permissions on an object, they cannot see that the object exists via the system views. So if a user (as...

    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: Sleeping mode issue

    A sleeping connection doesn't use CPU. Sleeping means it's finished running any queries and the connection is idle. eg if you open a SSMS query window, run a single query...

    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 - 17,131 through 17,145 (of 49,552 total)