Handling database view with numeric column name

Stimulsoft Reports.NET discussion
Post Reply
lcruiser
Posts: 58
Joined: Mon Jul 31, 2006 1:07 am

Handling database view with numeric column name

Post by lcruiser »

Hi,

I use the following method to register columns of table/view directly from a database:

Code: Select all

StiSqlSource source = new StiSqlSource(databaseName, qualifiedName, qualifiedName,
                            "SELECT * FROM " + qualifiedName);
This works fine most of the time, on some occation the view contains numeric column name (for example the view Sales.vSalesPersonSalesByFiscalYears in the AdventureWorks SQL 2005 Server), this is causing problem for StimultReport. If I edit and enclose the numeric column name in square brackets in Designer Dictionary StimultReport will handle it with no problem.

Can StimultReport be enhanced to automatically enclosed numeric column name in square brackets? Or is there some way that to implement this in codes?

Thanks.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Handling database view with numeric column name

Post by Edward »

We planning to add this feature in a week.

We will inform you in this topic when the solution will be ready.

Thank you.
Post Reply