Showing posts with label funny. Show all posts
Showing posts with label funny. Show all posts

Thursday, March 22, 2012

DateTimePicker RS2005SP2 solution?

I read a lot of posts in this forum, but none of them provide a solution.

Probably it is related to SP2 as many report, I have SP2 as well...

A funny situation:
I have a report parameter @.date, datatype datetime, so I can use the datepicker control.

But, even when not using this @.date parameter in my dataset, I still get the error:

  • The value provided for the report parameter 'date' is not valid for its type. (rsReportParameterTypeMismatch)

    Of course it has to do with regional settings and languages etc... But at my international client's site, workstations are in any regional setting and servers are in en-US, nothing I can do about that.

    Come'on Microsoft, don't tell us this datePicker is only for the US market?

    Thank You MS!

    Apparently it is now solved in the Cumulative update package 2 for SQL Server 2005 Service Pack 2

    See http://support.microsoft.com/kb/936305, bug n_ 50001284

  • Tuesday, February 14, 2012

    Dateadd problem

    Try this:

    print dateadd(y,+4, '29 feb 2008')

    Funny how the 1 day that is used to go from 29 jan to 1 mar stack if you add multible years to a day.

    +4 year should put it back on 29 feb 2012, +3 years should put it on 1 mar 2011.

    Well, mabye it has been posted before, I just found it interesting.

    That is because you are using y not yy. Look in the BOL for the parameters. dy/y is dayofyear not year.

    HTH, Jens K. Suessmeyer.

    http://www.sqlserver2005.de