Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 varchar(max)

Author  Topic 

shilpash
Posting Yak Master

103 Posts

Posted - 2012-05-18 : 10:49:04
I have a paramter which takes date in mmddyyyy format.I put the logic to take muultiple values separated by comma.When I use this in ssrs,if i do select all then it throws an error conversion failed when converting date and time from character string.If i filter the paramter and allow it to take few dates ,report runs fine.But I really need select all and all the dates.Also these many dates I have for that varchar(max)--
05/20/2011
09/26/2011
03/30/2011
09/03/2011
08/01/2011
08/29/2011
04/30/2011
05/30/2011
08/19/2011
05/02/2011
09/24/2011
08/15/2011
09/16/2011
03/03/2011
05/14/2011
09/02/2011
09/23/2011
03/28/2011
05/26/2011
09/28/2011
03/29/2011
05/09/2011
03/05/2011
09/09/2011
03/08/2011
09/17/2011
05/25/2011
05/06/2011
08/05/2011
08/06/2011
08/04/2011
03/23/2011
05/13/2011
08/09/2011
05/17/2011
09/07/2011
05/04/2011
09/06/2011
03/24/2011
08/03/2011
08/02/2011
03/25/2011
03/26/2011
09/15/2011
08/25/2011
05/10/2011
08/27/2011
08/30/2011
03/14/2011
05/28/2011
05/21/2011
08/24/2011
08/13/2011
03/21/2011
08/16/2011
03/11/2011
09/10/2011
08/20/2011
03/15/2011
03/10/2011
03/22/2011
05/23/2011
09/08/2011
09/20/2011
08/22/2011
08/18/2011
09/30/2011
08/10/2011
09/01/2011
05/05/2011
03/18/2011
03/04/2011
09/27/2011
03/09/2011
05/19/2011
05/12/2011
09/22/2011
03/16/2011
09/14/2011
09/13/2011
03/07/2011
05/24/2011
05/27/2011
03/12/2011
08/12/2011
08/08/2011
08/26/2011
03/31/2011
08/17/2011
03/02/2011
09/19/2011
09/12/2011
09/29/2011
05/11/2011
05/03/2011
09/05/2011
05/16/2011
03/01/2011
05/07/2011
08/11/2011
03/17/2011
05/31/2011
09/21/2011
05/18/2011
03/19/2011
08/23/2011
08/31/2011


So if i filter excluding november month,then repurt runs fine even if i do select all but if i do select all for these dates ,it throws an error.Please help.Thanks

shilpash
Posting Yak Master

103 Posts

Posted - 2012-05-18 : 10:50:23
These dates are in drop drown box
Go to Top of Page

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2012-05-18 : 11:29:04
Is this all inside SSRS or are you calling a stored procedure or ??
Go to Top of Page

shilpash
Posting Yak Master

103 Posts

Posted - 2012-05-18 : 11:30:10
quote:
Originally posted by Lamprey

Is this all inside SSRS or are you calling a stored procedure or ??



Calling from a store procedure
Go to Top of Page
   

- Advertisement -