all groups > sql server reporting services > september 2005 >
You're in the

sql server reporting services

group:

Passing a parameter onto a Oracle database


Passing a parameter onto a Oracle database Kevin
9/2/2005 3:33:01 AM
sql server reporting services:
I am connected to an oracle database and wish to allow the users enter a
ProdID, normally in SQL the criteria in the dataset would be =@ProdID and
this would be passed onto the report. In oracle it sees this as a text and
encloses parameter in quotes '=@ProdID'

Is it possible to use this expression in reporting services when attached to
Re: Passing a parameter onto a Oracle database Robert Bruckner [MSFT]
9/3/2005 6:32:36 PM
The managed Oracle data provider uses a ':' to mark named parameters
(instead of '@'); the OleDB provider for Oracle only allows unnamed
parameters (using '?'). The following KB article explains more details:
http://support.microsoft.com/default.aspx?scid=kb;en-us;834305

Examples:
Managed Oracle provider (named parameters):
select * from table where ename = :parameter
OleDB for Oracle (unnamed parameters):
select * from table where ename = ?

Note: the Visual Data Tools (VDT) query designer (4 panes) actually uses OLE
DB in the preview pane. The text-based generic query designer (GQD; 2 panes)
uses the .NET provider for Oracle. Generally, you will achieve better
results when using GQD with Oracle.

-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

Re: Passing a parameter onto a Oracle database Kevin
9/5/2005 12:46:04 AM
Thanks Robert, now I know what I must do.

[quoted text, click to view]
AddThis Social Bookmark Button