Forum Replies Created

Viewing 15 posts - 46,246 through 46,260 (of 49,552 total)

  • RE: TEMPDB Multiple DataFiles & Location

    It's always recommended to put TempDB on its own drive, especially if it's heavily used.

    The recomendations to split TempDB into multiple files is usually to avoud contention on allocation pages,...

    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: Problem with Datetime variables - Conversion failed when converting datetime from character string.

    Try the yyyy/mm/dd date format.

    set @fromdate = '2008/06/16'

    set @todate = '2008/07/22'

    Edit:

    Oh, and this is also a problem

    'set @date1 = ' + @fromdate + '; set @date2 =, ' + @todate...

    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/Restores for Database Mirroring Session

    Check that there's no automatic log backup job running and that the log hasn't been truncated between the full backup and the log backup you took.

    The error 'too recent...' implies...

    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 SHRINKFILE to clear the log file

    If you're in simple recovery mode the log automatically truncates at checkpoints. There's nothing you need to do.

    The log file contains inside it a number of log segments. These store...

    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 of 2005 mode 80 database

    Compat mode 80 just means that the SQL 2005 features are not enabled. It does not mean that the database structure is still that of a SQL 2000 database.

    Underneath...

    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: Executed as user: NT AUTHORITY\SYSTEM. (100001) [SQL] - Parent key not found for value in column "GROUPDET" in table "SEQ_BM_STAFF" [SQLSTATE 42000] (Error 50000)Associated statement is not prepared [SQLSTATE HY007] (Error 0).The step failed.

    Please run a checkDB on that 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: How to detect dead lock from SQL Server side

    You actually don't need trace flag 3605. Just 1222 or 1204 is enough to write the deadlock info into the error log.

    1204 puts the deadlock graph into the error 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: statistics on Table variable

    The statistics won't be there. They are not kept on table variables.

    For this reason mainly, table variables are best used for small numbers of rows. I prefer < 100.

    It's not...

    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 SHRINKFILE to clear the log file

    Full backups do not truncate transaction logs. If you're in full or bulk logged recovery modes, only a log backup will truncate teh transaction log and make the space available.

    Since...

    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: statistics on Table variable

    It still doesn't have row statistics. Run the following with the execution plan enabled

    DECLARE @testing TABLE (

    id INT PRIMARY KEY,

    somecolumn uniqueidentifier

    )

    INSERT INTO @testing

    SELECT number, NEWID()

    FROM...

    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: statistics on Table variable

    Please don't cross post. It just wastes people's time and fragments replies.

    No replies to this thread please. Direct replies to the following:

    http://www.sqlservercentral.com/Forums/Topic515651-360-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: Intellisense

    Bart Read (6/11/2008)


    SQL Prompt does support this, but you need to switch it on.

    :blush:

    Thanks. Somehow I've missed that every time I looked at the options....

    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: Intellisense

    Grant Fritchey (6/11/2008)


    You are quick, Gail! I haven't even been able to download the bloody thing yet, let alone get my virtual's upgraded.

    Not me actually. I'll be installing it tonight....

    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: free Books online links for 70-443 exam.

    guptaajay1985 (6/10/2008)


    I m new in SQL DBA. I m starting to prepare it,although I m also working in this working yet I want a good book with examples and questions.

    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: Intellisense

    I just checked SQL 2008 RC0 and the intellisense (and syntax checking) only works to a SQL 2008 server. :angry:

    This was one of the features I was really, really looking...

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