SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Special Characters in Column Name - WildCard in SSRS


Special Characters in Column Name - WildCard in SSRS

Author
Message
sqlstunner
sqlstunner
Valued Member
Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)Valued Member (56 reputation)

Group: General Forum Members
Points: 56 Visits: 145
Hello Folks,

I got into something interesting last week when i was working on SSRS 2008 R2 reports. So i need to clarify on that.

I have a table with around 1000 records and one of the column name is ITEM_NAME. The datatype is nvarchar(80). I built a SSRS report based on that table. I have 2 parameters. Country and ITEM_NAME. ITEM_NAME is wildcard parameter. Everything was running fine until i got some new data for ITEM_NAME like 'Pre order #1' , 'Pre Order #2' and so on. When i ran the report, i am not able to see the records with ITEM_NAME consists of '#'.

For EX: For country Mexico, i have two item names. 'Pre Order' and 'Pre Order #1'. If i select Mexico and view the report, i am seeing only 1 record with item_name 'Pre Order'. The ITEM_NAME with '#' is not showing up in the report.


My Question is, is this a BUG or any SSRS limitations that when we use wildcard parameter on any column, that column should not contain special characters like '#'.

Thanks,
SS
Amit Raut
Amit Raut
SSC Eights!
SSC Eights! (917 reputation)SSC Eights! (917 reputation)SSC Eights! (917 reputation)SSC Eights! (917 reputation)SSC Eights! (917 reputation)SSC Eights! (917 reputation)SSC Eights! (917 reputation)SSC Eights! (917 reputation)

Group: General Forum Members
Points: 917 Visits: 342
Are you sure about this?
I tried replicating this in SSRS 2005 (unfortunately I don't have SSRS 2008 installed on my machine).

With a dataset like:

Select 'Pre Order #1' as Text
union
Select 'Pre Order' as Text

And setting it for a table, I get two rows as expected.

Well, I've seen a case where if column name or alias contains #, it is replaced with an underscore.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search