Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / February 2006

Tip: Looking for answers? Try searching our database.

Using parameters to manipulate data sets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karl - 28 Feb 2006 19:55 GMT
I am trying to do some date manipulation in the data set based on a report
parameter .  The parameter is called RDate and is a datetime type.

DATEADD(DateInterval.month, DATEDIFF(DateInterval.month, RenewalDate,
@RDate), Month)

When I "run" the dataset, I get this message: "Syntax error or access
violation"

When I replace @RDate with a "real" date like 1/1/2000 it runs fine.  I have
tried a variety of things to get around this but am striking out including
casting the parameter as date time and using a declare/set statement.  I can
filter just fine using the parameter as a critera.

Any ideas what might be causing this?

K.
daw - 28 Feb 2006 22:56 GMT
Try using a stored procedure instead.  

> I am trying to do some date manipulation in the data set based on a report
> parameter .  The parameter is called RDate and is a datetime type.
[quoted text clipped - 13 lines]
>
> K.
Bruce L-C  [MVP] - 28 Feb 2006 23:04 GMT
Try defining the parameter as date/time. Report Menu->Report Parameters

Is this part of the where clause?

Signature

Bruce Loehle-Conger
MVP SQL Server Reporting Services

> Try using a stored procedure instead.
>
[quoted text clipped - 19 lines]
>>
>> K.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.