Forum Replies Created

Viewing 15 posts - 13,546 through 13,560 (of 49,552 total)

  • RE: What is an index.is is object ??how visualize...

    anoop.mig29 (4/8/2013)


    Table are allocated extents,then why why index are allocated pages . can index size becomes soo huge that they have to be allocated extents?

    Tables and indexes are both...

    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 Error - MySQL - 1030

    This is a SQL Server forum, not MySQL. Try http://forums.mysql.com

    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, mdf restoration, w/out ldf, new box

    Please note: 5 year old thread.

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

    DECLARE @string1 NVARCHAR(1000)

    DECLARE @Output NVARCHAR(15)

    SET @String1 = 'select @item = MAX(backup_set_id)

    FROM ['+@server_name+'].msdb.dbo.backupset

    WHERE database_name = '''+@db+''' AND type = ''D'''

    exec sp_executesql @string1, N'@item nvarchar(15) OUTPUT', @item = @output OUTPUT

    select @output

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

    The format for sp_executesql is:

    exec sp_executeSQL @SQLString, @ParameterDeclaration, @Output = @Variable

    Exact details in Books Online.

    Without seeing what you're doing, that's about the best I can offer

    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 Growth

    Maybe take a read through this: http://www.sqlservercentral.com/articles/Transaction+Log/72488/

    As for what's causing the log to grow, well, first you have to identify why it's growing. See referenced article. Once you know what...

    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: Growing Log Files

    SQLCrazyCertified (4/8/2013)


    GilaMonster (4/8/2013)


    mp5387 (4/8/2013)


    Now for providing transactional backup which method is good? append or overwrite

    Neither.

    Overwrite would be rather silly with log backups since you need all log backups in sequence...

    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-SQL Variable vs String Equivalent

    sqlpadawan_1 (4/8/2013)


    To clarify a couple of points. The variable is being used as a constant in the code. @yes will always equal 'Yes'. Rather than have 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: T-SQL Variable vs String Equivalent

    Basically the difference between the two comes down to parameter sniffing. At compile time the optimiser can see the value of the constant and can compile a query plan optimal...

    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-SQL Variable vs String Equivalent

    j.miner (4/8/2013)


    2 - The plan with the variable will be recompiled every time. This is due to the fact it might change.

    This is even more likely if the input...

    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: Growing Log Files

    mp5387 (4/8/2013)


    Now for providing transactional backup which method is good? append or overwrite

    Neither.

    Overwrite would be rather silly with log backups since you need all log backups in sequence to restore....

    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: Prepared vs AdHoc - Plan Cache ObjType

    Parameterised vs not parameterised. (though you can prepare a statement with hardcoded values in it 🙂 )

    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: Temp Table Column name or number of supplied values does not match table definition

    I seem to recall, maybe that DBCC Loginfo gained an additional column in 2012. Check that, run DBCC LogInfo by itself and see how many columns it returns. If there'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
  • RE: Troubleshoot Msg 824 in SQL Server

    The entire IO subsystem, from the filter drivers down to the disks. Corruption is 99% of the time an IO subsystem problem, could be anything in the stack. Check 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: Backup Log cannot be performed because there is no current database backup

    So the full backup is reinitialising the log chain and hence the log backups run. It's not a good maintenance schedule though. Switching to simple recovery for index rebuilds 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

Viewing 15 posts - 13,546 through 13,560 (of 49,552 total)