Forum Replies Created

Viewing 15 posts - 44,806 through 44,820 (of 49,552 total)

  • RE: Covering index

    It's not a different type of index.

    An index is a covering index for a specific query if all of the columns that the query needs are included in the index...

    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: Unable to create table Dynamically

    If I'm understanding you corectly, you want the following script generated:

    CREATE TABLE TableName (iPhotoGalId INT PRIMARY KEY IDENTITY(1,1) NOT NULL,vPhotoGalTitle VARCHAR(50),dModifiedDate DATETIME DEFAULT GETDATE(),iOrder INT)

    but you're getting this:

    iPhotoGalId INT Primary...

    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: Transaction Log Grows Too Big

    joemai (8/27/2008)


    you can also backup the transaction with truncate or no_log option:

    backup log your_db with truncate_only

    Since the DB is in Simple recovery mode, a checkpoint will truncate the log and...

    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: Drawbacks of EXEC 'SQL STATEMENT'

    One of the drawbacks is in terms of security. Using dynamic SQL requires that the user has rights to the base tables and opens the system up to possible SQL...

    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: Transaction Log Grows Too Big

    No matter what settings you use, SQL will log transactions. It's not an optional part of the system, it's how data integrity is guaranteed. Data changes are first written 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: Best column choice for clustered index?

    Marios Philippopoulos (8/27/2008)


    I'm considering a clustered index because of the GROUP BY and MAX clauses. Clustered indexes usually perform better in queries where ranges of rows are involved. Nonclustered indexes...

    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 2005 Missing Indexes

    Marios Philippopoulos (8/27/2008)


    I read it in an article on SQL Server magazine, April 2007, by Kalen Delaney: "use Missing-Index Groups for Query Tuning". I quote:

    "At present, the missing index information...

    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: FULL BACKUPs vs TRANSACTION LOG BACKUPs

    day (8/27/2008)


    I am backing up every night not more than total 2 Gb as a full-backup. It takes only few minutes. Do I really need to set a Transaction 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: Best column choice for clustered index?

    Why does it have to be clustered? If it was me, I'd suggest a nonclustered index for that, (TN, CID) INCLUDE (IDt)

    What's the selectivity of TN? How many rows...

    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 2005 Missing Indexes

    Marios Philippopoulos (8/27/2008)


    One caveat is that indexes used in places other than in the WHERE clause of queries are not included in the DMVs, so, for example, indexes needed on...

    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: Standard version on 2 (quad core) cpu with 16 Gb RAM

    Depends whether you're going for per CPU or per seat licencing. Per CPU licences are a lot more expensive, so if you don't have a large number of users, consider...

    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: Re: Intermittent slow database resposne

    jlp3630 (8/27/2008)


    I'm running RAID-0 on my c: drive (contains Windows, SQL server, master, model and msdb databases and log files).

    I'm running RAID-50 on my f: drive (tempdb, user databases and...

    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: Recovery model for a database

    SQL does not have a mind of its own. It will not change a database's recovery model unless someone issues a command to do so.

    Check any jobs that 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: Understanding waitresource coloumn in sysprocesses

    Ahmad Osama (8/27/2008)


    wait type is pageiolatch_sh....

    Then it is databaseID : FileID : PageID

    Is there any chart to get this depending on the waittype....

    or any logic

    I've seen one before, I 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: SqlDumpExceptionHandler: Process 59 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION.- Please helpits urgent

    For this kind of error, you should probably contact Microsoft's customer support people. We don't have the tools to read stack dumps and figure out what caused them.

    Generally, it's...

    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 - 44,806 through 44,820 (of 49,552 total)