Forum Replies Created

Viewing 15 posts - 91 through 105 (of 205 total)

  • RE: Fastest way to count total number of rows...

    GilaMonster (1/31/2013)


    That's the rowmodctr column, not rows.

    Rowmodctr = row modification counter, number of rows changed since that statistic was last updated. Set to 0 when the index is rebuilt or...

  • RE: Fastest way to count total number of rows...

    GilaMonster (1/31/2013)


    The row count in sysindexes is not related to statistics updates.

    This quote from the MSDN page I referenced seems to indicate some relation.

    "Counts the total number of inserted, deleted,...

  • RE: Fastest way to count total number of rows...

    Lowell (1/31/2013)


    i thought you had to get the actual counts from sys.indexes; since the index must have a heap/PK index for every table, teh row counts are materialized exactly correct...

  • RE: Fastest way to count total number of rows...

    This is the fastest and most reliable way I have found.

    SELECT SUM (row_count)

    FROM sys.dm_db_partition_stats

    WHERE object_id = OBJECT_ID('dbo.MovimentosFuncionarios')

    AND (index_id=0 or index_id=1);

    Enjoy!

  • RE: Still 32

    Good editorial Steve!

    I vaguely remember a similar debate, many years ago, regarding 16 or 32 bit. I guess the more things change the more they stay the same. :laugh:

    There may...

  • RE: dynamic query..Help needed pls

    prathibha_aviator (1/22/2013)


    SET @OrgName = N'SELECT ORG_ID ' + CONVERT(varchar(10), @orgid) +' '+ '[Description]' + ' ' +'('+ CONVERT(varchar(20),+ 'pol_id)'

    +')'+ 'from'+ @dbname + '.dbo.Organization'+ 'where OrganizationID =' + @orgid;

    Above is the...

  • RE: Number of Rows

    Hugo Kornelis (1/22/2013)


    ... showing or suppressing the "xx rows affected" message is an option you can change. See my first message in this topic. In the message just above yours,...

  • RE: Number of Rows

    venkat9.sql (1/22/2013)


    Thanks for the reply. I didn't execute the code. I just used the display estimated execution plan.

    I checked the messages tab and didnt get the 1 row affected message.

    I...

  • RE: Number of Rows

    venkat9.sql (1/22/2013)


    I am a starter in sql server..

    Can some one let me know why i dont get the 1 row(s) affected message as stated but simply

    Command(s) completed successfully message..

    Hello,...

  • RE: Number of Rows

    L' Eomot Inversé (1/18/2013)


    ... But if you want to know how many rows that code affects, which is what you asked, you have to run the code as well as...

  • RE: Number of Rows

    bitbucket-25253 (1/18/2013)


    ...

    I guess the best we can do is agree to disagree and leave it at that...

    I don't even agree with this statement because I gave a clear and...

  • RE: Number of Rows

    bitbucket-25253 (1/18/2013)


    ...

    Been there done that ... the message tab is NOT, let me repeat, the message tab in NOT part of the estimated execution plan

    I think the message tab is...

  • RE: Number of Rows

    L' Eomot Inversé (1/18/2013)


    ...

    So either I am missing something, or there's been a change in behaviour between 2008+SP3 and 2008R2+SP3.

    Try this:

    1) Paste code into SSMS query analyzer

    2) Click...

  • RE: Number of Rows

    Mighty (1/18/2013)


    ... Not sure why it would matter that I am a member since 2005 ...

    Because I would expect that someone who has been visiting this site longer than me...

  • RE: Queries

    SanDroid (1/18/2013)


    ... If more that 80% don't get your question right, you should reconsider what you are asking and how you re asking it. 😉

    That sounds logical. But of course...

Viewing 15 posts - 91 through 105 (of 205 total)