Re: '[' in column name
- From: Steve Kass <skass@xxxxxxxx>
- Date: Mon, 24 Apr 2006 01:17:30 -0400
You'll see the correct way to specify this with the
function QUOTENAME():
select quotename('[Time Period].[BTG][Measures].[FC]')
The result is
[[Time Period]].[BTG]][Measures]].[FC]]]
You could also use
"[Time Period].[BTG][Measures].[FC]"
When using [] to delimit an object name, you must
double any occurrences of ] in the name. Don't
double the occurrences of [ .
Steve Kass
Drew University
Carmen wrote:
I'm running a OpenRowset query getting data from MSAS (MSOLAP). The query returns column names such as '[Time Period].[BTG][Measures].[FC]'. I need to create an alias for this column. How could I do it? I tried '[[Time Period].[BTG][Measures].[FC]]', '[[Time Period]].[[BTG]][[Measures]].[[FC]]', and other combinations but nothing so far. Anybody can help?.
Thanks,
Carmen
- Prev by Date: Re: osql.exe not installed
- Next by Date: Drop Column that has a Default value
- Previous by thread: osql.exe not installed
- Next by thread: Drop Column that has a Default value
- Index(es):
Relevant Pages
|
Loading