Showing posts with label unique. Show all posts
Showing posts with label unique. Show all posts

Thursday, March 22, 2012

Bug? Report Builder returning only unique records!

Our users use Report Builder for writing ad-hoc queries. They have run into a problem where Report Builder is returning only distinct records is the entities unique identifier is not added to the report.

Example:

TransID Type TransQuantity

1 CS 4
2 CS 4
3 CP 2
4 CN 3

Adding the above fields to the report builder canvas will return 4 rows. However, if I were to add only Type and TransQuantity to the canvas as such, Report Builder will only return 3 rows:

Type TransQuantity

CS 4
CP 2
CN 3

Is there any way to have Report Builder return the actual number of records? Our users often will export the results from Report Builder into Excel to slice and dice the data, and with the functionality the Report Builder has right now, incorrect values will be certain.

Thanks,
Taurkon

You need to be aware of what Report Builder is grouping on. If you don't want rows based on distinct values, add the ID field first to make sure you get an entity group, then remove it later.

See this blog post for more info:

http://blogs.msdn.com/bobmeyers/archive/2006/12/20/getting-grouping-right-in-report-builder.aspx

Hope this helps!

|||Thanks Bob for your response.

Tuesday, March 20, 2012

BUG: Index Lost Extended Properties?

Hi
As title, i lost the extended properties when
i changed indexed collumns!
If i just change other index property such as
"unique", the extended properties is not lose.
I think it is a bug of SQL Server Management Studio.
Green Xiar
You can report bugs at http://connect.microsoft.com/sql. Make sure you include a repro and have
version number.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"greenxiar" <greenxiar@.hotmail.com> wrote in message news:OM7qlSBtHHA.2752@.TK2MSFTNGP06.phx.gbl...
> Hi
> As title, i lost the extended properties when
> i changed indexed collumns!
> If i just change other index property such as
> "unique", the extended properties is not lose.
> I think it is a bug of SQL Server Management Studio.
> Green Xiar
>

BUG: Index Lost Extended Properties?

Hi
As title, i lost the extended properties when
i changed indexed collumns!
If i just change other index property such as
"unique", the extended properties is not lose.
I think it is a bug of SQL Server Management Studio.
Green Xiar
You can report bugs at http://connect.microsoft.com/sql. Make sure you include a repro and have
version number.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"greenxiar" <greenxiar@.hotmail.com> wrote in message news:OM7qlSBtHHA.2752@.TK2MSFTNGP06.phx.gbl...
> Hi
> As title, i lost the extended properties when
> i changed indexed collumns!
> If i just change other index property such as
> "unique", the extended properties is not lose.
> I think it is a bug of SQL Server Management Studio.
> Green Xiar
>
sql

BUG: Index Lost Extended Properties?

Hi
As title, i lost the extended properties when
i changed indexed collumns!
If i just change other index property such as
"unique", the extended properties is not lose.
I think it is a bug of SQL Server Management Studio.
Green XiarYou can report bugs at http://connect.microsoft.com/sql. Make sure you include a repro and have
version number.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"greenxiar" <greenxiar@.hotmail.com> wrote in message news:OM7qlSBtHHA.2752@.TK2MSFTNGP06.phx.gbl...
> Hi
> As title, i lost the extended properties when
> i changed indexed collumns!
> If i just change other index property such as
> "unique", the extended properties is not lose.
> I think it is a bug of SQL Server Management Studio.
> Green Xiar
>