Forum Replies Created

Viewing 15 posts - 14,551 through 14,565 (of 49,552 total)

  • RE: To configure the user name and login name for a database

    If the user needs to see the definitions of the objects, grant them the view definition permission.

    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: Transactional log is full.. space recovery lead to BLocking

    Wow, two ways to mismanage the log. If you don't care about recovering to a point in time then put the DB in simple recovery model and leave it alone.

    Deleting...

    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: Low Performance - High CPU Problem and others...

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-2/

    No magic bullets.

    And no, adding the pk column to NC indexes is not going to fix lookups, and is probably a waste of time.

    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: URGENT T- SQL QUESTION. NEED HELP.

    Jason-299789 (1/30/2013)


    Sorry I spotted that, and just changed them to work. Theres still a problem with the ISNULL though.

    this is the isnull

    SELECT ID,COLOR

    FROM #TBLCOLOR

    WHERE ISNULL(COLOR,'')=ISNULL(@COLOR,ISNULL(COLOR,''))

    Just bear in mind that can't...

    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: Shrinking log is bad?

    karthik.catchme (1/29/2013)


    The reason for shrinking the log is

    "a drive could have log files of multiple databases. If, one log file has over grown due to a big transaction

    If...

    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: Stored procedure very slow execution

    Put in a request for an exception to that policy (you have a damn good reason).

    What I suggest is a procedure with EXECUTE AS a higher privileged user (perhaps...

    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: Corrupted Database

    @SQLFRNDZ (1/29/2013)


    Could you please tell me what about it?

    It contains the definition of all procedures, views and functions in your DB, which is what I thought you wanted out.

    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: Corrupted Database

    Can you query the sys.sql_modules view?

    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: Corrupted Database

    Can you run CheckDB on the 2005 database? Or do you not have a pre-upgrade copy?

    Did the DB switch into emergency mode without error?

    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: Backup Problem

    Check the 3rd party backup tool's log. That's not a native SQL backup, so whatever is running that backup should have the detailed log (the backup application log)

    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: Need replacement proc for nightly ReIndexes

    http://ola.hallengren.com/Versions.html

    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: Database Corrupt

    No clean backup I assume...

    Script all objects (some will fail)

    Export all data (some will fail)

    Recreate the 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: ORDER BY on Aggregate

    Don't even need a subquery. This should be perfectly legal code

    select

    S.agentNumber,

    max(S.auditdate) as auditdate,

    A.agencyName,

    A.state,

    A.region,

    A.Parent

    from

    tblAudit_Auditschedule S

    left outer join

    tblAgents A

    OnA.agentNumber = s.agentNumber...

    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: Seems simple, must be hard!! Cluster Instances, Linked Servers -- adjust Max Memory??

    Problem 2 is reasonably easy

    CREATE PROCEDURE FixMemory

    AS

    EXEC sp_configure 'max server memory', 3000

    RECONFIGURE

    GO

    EXEC FixMemory AT <linked server name>

    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: DBCC CheckDB fails

    Backing up and restoring will never fix corruption, because the corruption is included with the backup and restored with it.

    Don't suppose there's a backup from before this started?

    Can you 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 - 14,551 through 14,565 (of 49,552 total)