Tuesday, March 20, 2012
Bug? Available Values list for boolean parameters
I have defined a boolean parameter in my report and I wish to display a list
of possible values instead of the True/False radio button. I have defined
two possible values in the Available Values list (Report Parameters Window)
but it looks as though they are ignored, the parameter toolbar still
displaying the True/False radio buttons...
Hope someone can help.Looks like a bug to me...best chance is to programatically create your
own parameter page.
"webfrog" <webfrog@.discussions.microsoft.com> wrote in message news:<11B5246A-F6E6-4583-8945-A945851F58CD@.microsoft.com>...
> Hi,
> I have defined a boolean parameter in my report and I wish to display a list
> of possible values instead of the True/False radio button. I have defined
> two possible values in the Available Values list (Report Parameters Window)
> but it looks as though they are ignored, the parameter toolbar still
> displaying the True/False radio buttons...
> Hope someone can help.|||If you change your datatype to integer, then put in available values such
that true = 1 and false = 0, you will get a drop-down list with true & false
options.
"webfrog" wrote:
> Hi,
> I have defined a boolean parameter in my report and I wish to display a list
> of possible values instead of the True/False radio button. I have defined
> two possible values in the Available Values list (Report Parameters Window)
> but it looks as though they are ignored, the parameter toolbar still
> displaying the True/False radio buttons...
> Hope someone can help.
>
Monday, March 19, 2012
bug: "autostat" of an index reported by SQL Server Management Studio for 2005
SQL server management studio does not seem to display the "autostat" of
an index correctly. The value in SQL server management studio is
always the reverse of the value from "sp_autostats".
to reproduce, high light a table in object explorer -> right click to
select Modify -> click "manage indexes and keys" -> select the index ,
the value of "Re-compute Statistics" is always the reverse of the value
of the corresponding index from "sp_autostats".
Thanks.
Kong
(likong@.email.com) writes:
> Do not know if any one has complained this to Microsoft.
> SQL server management studio does not seem to display the "autostat" of
> an index correctly. The value in SQL server management studio is
> always the reverse of the value from "sp_autostats".
> to reproduce, high light a table in object explorer -> right click to
> select Modify -> click "manage indexes and keys" -> select the index ,
> the value of "Re-compute Statistics" is always the reverse of the value
> of the corresponding index from "sp_autostats".
Actually, I can't recall having seen this particular issue reported.
When playing around, it appears that someone has gotten confused over
the DLL, where the option is STATISTICS_NORECOMPUTE=ON/OFF. If you believe
what the dialog says, and change No to Yes, you will alter the setting.
The place to report bugs like this is
http://lab.msdn.microsoft.com/ProductFeedback/, and I encourage you to
go there.
By the way, if you right-click the index, select Properties, and go to
the Options page, you will see that on this screen they have it right.
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Thursday, February 16, 2012
Breaking up parametersT
declare @.CurrentDate datetime
set @.CurrentDate = GetDate()
select DATENAME(m, @.CurrentDate) + ' ' + DATENAME(yy, @.CurrentDate)
|||Im using visual basic business intelligence. I did figure out the year...
=Year(Parameters!reportdate.Value)
I want the month to be displayed as November, January, July...etc not 11, 1, 7 '
=Month(Parameters!reportdate.Value) gives me 10 which I dont want
and
=MonthName(Parameters!reportdate.Value) gives me an error. I am using SQL 2000.
|||Try the code that I gave above. My output from running the statementselect DATENAME(m, @.CurrentDate) + ' ' + DATENAME(yy, @.CurrentDate)
is:
Column1
-
April 2006
No rows affected.
(1 row(s) returned)
That gives the month name (not number), as you requested...|||Have a look at:
http://msdn2.microsoft.com/en-US/library/ms174395(SQL.90).aspx
It's the documentation for the TSQL DATENAME command.|||
try the following
Switch(Month(Parameters!BeginDate.Value)=01,"January" & Year(Parameters!BeginDate.Value),Month(Parameters!BeginDate.Value)=02,"Feb" & Year( Parameters!BeginDate.Value) )
|||The DATENAME function should also work in SQL Server 2000 - have a look here:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_da-db_1dph.asp
Also have a look at this article for some further examples:
http://www.sqljunkies.com/Article/6676BEAE-1967-402D-9578-9A1C7FD826E5.scuk
Tuesday, February 14, 2012
Breaking up parameters
declare @.CurrentDate datetime
set @.CurrentDate = GetDate()
select DATENAME(m, @.CurrentDate) + ' ' + DATENAME(yy, @.CurrentDate)
|||Im using visual basic business intelligence. I did figure out the year...
=Year(Parameters!reportdate.Value)
I want the month to be displayed as November, January, July...etc not 11, 1, 7 '
=Month(Parameters!reportdate.Value) gives me 10 which I dont want
and
=MonthName(Parameters!reportdate.Value) gives me an error. I am using SQL 2000.
|||Try the code that I gave above. My output from running the statementselect DATENAME(m, @.CurrentDate) + ' ' + DATENAME(yy, @.CurrentDate)
is:
Column1
-
April 2006
No rows affected.
(1 row(s) returned)
That gives the month name (not number), as you requested...|||Have a look at:
http://msdn2.microsoft.com/en-US/library/ms174395(SQL.90).aspx
It's the documentation for the TSQL DATENAME command.|||
try the following
Switch(Month(Parameters!BeginDate.Value)=01,"January" & Year(Parameters!BeginDate.Value),Month(Parameters!BeginDate.Value)=02,"Feb" & Year( Parameters!BeginDate.Value) )
|||The DATENAME function should also work in SQL Server 2000 - have a look here:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_da-db_1dph.asp
Also have a look at this article for some further examples:
http://www.sqljunkies.com/Article/6676BEAE-1967-402D-9578-9A1C7FD826E5.scuk
Sunday, February 12, 2012
bottom row
How to display bottom row should be in dotted line
One way of doing this is to put a group in with a grouping of =1 (will force only one group) and then in the group footer make the top dotted. If you need this on every page, just have the group footer displayed on every page.|||Thanks Lonnie
Can you explain indetail.