Column name contains special character

Post Reply
gdimit
Posts: 17
Joined: Tue Mar 22, 2011 10:15 am
OLAP Product: TM1
Version: 10.2.1
Excel Version: 2010

Column name contains special character

Post by gdimit »

Hi all,
I have a column that its name contains a special character for example Product? (the name of the column contains the quenstion mark)
when I wrote in TM1 process
SELECT [Product?]
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 should I write the sql statement to include the Product? column?
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Column name contains special character

Post by tomok »

You need to change the name of your Product? dimension because this is going to cause you problems. The "?" character is used in the TM1 for variable subsitution in your SQL string so you can have an SQL query that is dynamic, based on an input parameter in a TI process.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
Post Reply