Forum Replies Created

Viewing 15 posts - 571 through 585 (of 607 total)

  • RE: Coding Standards

    Jared, do me a favour please. Find sp_spaceused and modify it. What do you think? Good code laid out badly.

  • RE: Coding Standards

    Eugene Elutin (3/19/2012)


    Artoo22 (3/19/2012)


    ...

    Why doesn't Microsoft use T-SQL coding standards?

    ...

    Microsoft wants to show by example, that not using coding standards, ends up with great "dog's breakfast" :hehe:

    I wonder what...

  • RE: WHERE Date Range

    SELECT*

    FROM#t

    WHEREDateCreated >= ISNULL(@FromDate, DateCreated)

    ANDDateCreated <= ISNULL(@ThroughDate, DateCreated)

  • RE: Partitioning Question

    You probably have a non-clustered index on the one partition. Each index is represented in sys.partitions.

    SELECT o.name

    ,p.partition_number

    ,p.index_id

    ,p.rows

    FROM sys.objects o

    JOINsys.partitions p

    ON o.object_id = p.object_id

    WHEREo.type = 'U';

  • RE: Please help :(

    mithubhudolia (1/27/2012)


    please reply me of my question only .

    Thanks

    How to win friends and influence people :w00t:

  • RE: Nasty Deadlock Issues

    Jack Corbett (1/26/2012)


    Can you provide the DDL for the Foreign Key Constraints? I'm trying to figure out why there would need to be an Exclusive lock taken...

  • RE: Nasty Deadlock Issues

    I can change indexes, partitioning and data types.

    I tried changing the clustered index on TBL_PROPERTY but that resulted in TBL_REQUESTVALUES_OBJECT_PROPERTY dealocking with itself.

  • RE: Nasty Deadlock Issues

    fahey.jonathan (1/25/2012)


    For anyone else trying to read the SQL plan files, when I downloaded them, they showed up with an "xml" extension so I had to rename them with a...

  • RE: Nasty Deadlock Issues

    I also get a blank screen when clicking the link, but I can save to disk and they open fine.

    Here are the statements:

    UPDATETBL_PROPERTY

    SETKIND_ID = 1234

    ,FK_STRUCTURED_ACTUAL_ID = 5678

    ,SPECIFICATION_ID = 910

    WHEREID...

  • RE: When is a scan cheaper than a seek?

    Thanks for everyones input, I'm hapy to leave it as is then. My tests were conducted on a test server.

  • RE: When is a scan cheaper than a seek?

    GilaMonster (11/3/2011)


    Not offhand.

    Second execution (so not incurring data caching), execution plan off when you pulled those IO and time stats?

    Before running each one I issued DBCC FREEPROCCACHE & DBCC DROPCLEANBUFFERS.

    I...

  • RE: When is a scan cheaper than a seek?

    GilaMonster (11/3/2011)


    120 000 reads for the seek vs 20 000 for the scan. Pretty clear why SQL chooses a scan here.

    Totally makes sense. Do you have any thoughts as to...

  • RE: When is a scan cheaper than a seek?

    This is the "normal" one using the CIX Scan

    Table 'Products'. Scan count 1, logical reads 24452, physical reads 0, read-ahead reads 0

    Table 'ObjectTypes'. Scan count 5, logical reads 134, physical...

  • RE: Percentage calculation

    anthony.green (11/3/2011)


    Thanks Edward, totally appreciate that, I would of still expected SQL to come back with 4 and not 4.34

    Those are expected results when working with INT values. The /...

  • RE: Auto Update Statistics

    ALZDBA (7/25/2011)


    Can you also elaborate on the indexes and the stats for which you noticed the auto update ?

    (ddl / stats columns ?)

    dbo.TBL_ACCOUNT

    _WA_Sys_TYPE_ID_078C1F06

    TYPE_ID, ID

    CREATE NONCLUSTERED INDEX...

Viewing 15 posts - 571 through 585 (of 607 total)