COGNOiSe.com - The IBM Cognos Community

IBM Cognos Express => IBM Cognos Express => Topic started by: pricter on 21 Mar 2011 07:38:04 AM

Title: Column name contains special character
Post by: pricter on 21 Mar 2011 07:38:04 AM
Hi all,
I have a column that its name contains special character for example (Product?)
when I wrote in TM1 process
SELECT [Product Name?]
FROM [GOSALES].[dbo].[Special Characters Test]
I get the error
"SQL Statement Failed"
when I wrote
SELECT *
FROM [GOSALES].[dbo].[Special Characters Test]
I am not facing any problem

Any ideas how can I overcome this issue using the column in my sql statement?

Title: Re: Column name contains special character
Post by: MFGF on 01 Apr 2011 07:45:20 AM
Try including the column name in double quotes.

MF.
Title: Re: Column name contains special character
Post by: sreejithhk on 24 May 2012 07:32:34 AM
Hi,
In cognos special character '?' refers to parameters. Any string enclosed inside a '??' will be considered as a parameter.

eg ?ParamName?

Thats the reason u get an exception.

Regards,
Sreejith H