May 22, 2012 at 8:29 am
Hi,
I do get all the data in my stored proc but when I run my report ssrs, it skips the rows which have apostrophe in Name column.
I rechecked that There is no FILTER on the report. There is Name data set in my report and it has exact same available values as the ones in my stored proc result
any hints would be appreciated.
thanks.
create table #123
(NAME varchar(25) null)
INSERT INTO #123 (NAME)
SELECT 'O''Neill'
UNION ALL
SELECT 'O''Brian'
UNION ALL
SELECT 'smith'
UNION ALL
SELECT 'Brown'
select * from #123
drop table #123
May 22, 2012 at 8:51 am
I've just done a quick test, 2 data sets, one based on the sample data given as a data set, and another as a proc based on the data in a proper table in my test db. Both datasets show the apostophe, so I am inclined to say its something report or environmental based
May 22, 2012 at 9:02 am
yes it is for sure on the report's end. Any idea how to fix that? thanks
May 22, 2012 at 9:52 am
Those are all single quotes ('), not apostrophes (`). I replace all single quotes with apostrophes on input and don't have to worry about double (triple, quadruple?)-single quoting again.
______________________________________________________________________________
How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.
May 22, 2012 at 10:20 am
Thanks, how do I do it? In the dataset NAme or in the proc?
something like this?
@Pararm =Replace( Parameters!Param.Value, "'", "''" )
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply