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 / July 2006

Tip: Looking for answers? Try searching our database.

Oracle Query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
karlbasson@gmail.com - 28 Jul 2006 11:17 GMT
Good day

I am having trouble with getting an Oracle query right for SQL
reporting service.

I wrote a front end to execute the query and it works fine. Now the
next step is to allow users to get a report on any number of clients.

The way I do this for normal SQL Server, is to build SQL with "AND"s
and "OR"s in code, and then send it to reporting services as a
parameter and append it.

This is the text

="SELECT * FROM TABLE WHERE "+ Parameters!Id.Value

And the value of my parameter is:

ID = 'ALE' OR ID = 'ALO'

I keep getting errors like "SQL command not properly ended".

Have anybody done something similar? Am I missing something?

Any help will be appreciated.

Kind regards,
Karl
rwiethorn - 31 Jul 2006 13:13 GMT
Karl,
You need to use a (:) colon instead of the @ sign.
For example,
Select *
From tblYours
Where ID=:ID

Hope this helps,
rwiethron

> Good day
>
[quoted text clipped - 24 lines]
> Kind regards,
> Karl
 
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.