Forum Replies Created

Viewing 15 posts - 47,896 through 47,910 (of 49,552 total)

  • RE: sysadmin to dbowner

    Minimum permissions needed to access the server is CONNECT on the server. I think you get that by default on any login, though it can be revoked.

    Change the user's 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: how to calculate duration spent on every visit

    Can you give an example of the output you want please?

    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: Please suggest Tools for sql server 2005

    There's no tool in existance that can rewrite a query in the most optimal way, or list the 'correct' indexes for a table. That's why skilled DBAs are still needed.

    Profiler...

    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: find in which table a uniqueidentifier is

    You'll have to query every table. There's no place where all data from all columns is stored, or anything like that.

    You can use the system tables/information views to build 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: Update stats

    Stats updates get triggered on a read. The updates just set the row mod. When a query is run against a table, the rowmodcnt is checked and, if necessary 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 Datafile... How to protect ????

    There's nothing you can really do to protect the server against the admins of that server. They have full control over the servers and possibly even the domain. Stealing your...

    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 Datafile... How to protect ????

    Do you want to prevent people from attaching data files, or from copying data files off the machine?

    For the first, don't give db_creator rights to anyone. Sysadmins can do 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: The SQL * Wildcard

    I did a quick check earlier. I couldn't see anything different with profiler, and the times were the same. I just don't know of any way to check system table...

    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

    Yup. The indexes won't get fragmented during an upgrade. The stats need updating because SQL 2005 keeps more detailed stats than SQL 2000 did. The 2005 optimiser can use 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: Using the TOP 1 with a variable, how?

    I'm going to reply to your PM here. A private message won't help anyone else, and also means that I'm the only one who can reply. There are lots of...

    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: changes objects ?

    Easiest way is to use a cursor. For each item found, call sp_helptext.

    Set the output in management studio to text, then you can save the whole lot as a file

    SET...

    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

    EXEC sp_MSForEachTable 'UPDATE STATISTICS ? with fullscan; print ''?'' '

    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: T-Log backup question

    DBAhawk (12/28/2007)


    Sounds like I did the right thing, then. If the problem recurs, I'll shorten the log backup interval again perhaps first adding additional backups in the off hours...

    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: T-Log backup question

    Setting the DB to Truncate Log on Checkpoint means you've switched the recovery mode to Simple.

    In Simple recovery mode, the inactive portions of the log are discarded once the data...

    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: Using the TOP 1 with a variable, how?

    In 2005 only

    SELECT TOP (@Variable) Columns FROM Table

    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 - 47,896 through 47,910 (of 49,552 total)