Groups | Blog | Home
all groups > sql server reporting services > november 2005 >

sql server reporting services : Query formatting in 2005 converted reports



bhc
11/8/2005 3:11:09 PM
Yikes! I have upgraded to SQL Server 2005 Developer Edition, including the
RS upgrade. The ReportServer and reports all came over and are running
fabulously well. However, strange things are happening with my queries in
Intelligence Studio (and VS Studio 2005, I've tried both) after being
converted to the new report definition format. My extensive queries have
been reformatted predominantly as straight-text (very unreadable) and my
queries no longer pass SQL verification.

I tried retrieving the well-formatted queries from local text file backups,
but the new designer continues to reformat it as straight-text.

What can I do to get the following format in my queries:
Select A,
B,
C (as string),
D
From TableA
Where [clause]

I'm querying against a MySQL 4.0 database with MyODBC 3.5.1 driver.

Thanks.
Bruce L-C [MVP]
11/9/2005 7:16:19 AM
Have you tried using the generic query designer (2 panes instead of 4). I
should leave it a alone. It is one of the buttons to the right of the ... to
switch to it).


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

bhc
11/9/2005 8:18:07 AM
I get the following after converting to the new report definition format when
I access the Data tab:
Error in SELECT clause: alias not recognized.
Error in list of function arguments: 'DataCenter' not recognized.
Error in list of function arguments: ',' not recognized.
Error in list of function arguments: '<' not recognized.
Error in list of function arguments: 'out_month' not recognized.
Unable to parse query text.

If I let things load in the multi-pane view and use the Verify SQL button, a
Microsoft Visual Database Tools window pops up with "The command is not
supported by this provider".

Having reviewed a few of my report queries facing this issue, I notice
problems only with queries using native MySQL functions, such as date/time
conversions. All functions have been encapsulated by single quotes, so
instead of 60-SECOND(A.TIMESTAMP), I now have to contend with
60-'SECOND'(A.TIMESTAMP). Any attempts to remove them are futile; they
simply get inserted when I go to verify the SQL or move out of the Query text
pane. Though I get the above errors on other MySQL queries, I am still able
to run ones without functions in them.

Is there any way to configure RS to stop doing this? This is just nasty.
Thanks.
bhc

[quoted text, click to view]
Bruce L-C [MVP]
11/9/2005 10:26:44 AM
Have you tried going to the generic query designer? I have no doubt you are
seeing these problems in the 4 pane graphical query designer. What happens
if you switch over to the generic query designer.


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

bhc
11/9/2005 11:15:52 AM
Yes, I have tried using just the generic query designer (that's what I'm used
from RS 2000). It is the generic query designer where I'm having all the
problems. It's very unreadable and does not parse when MySQL functions are
used in the query even if the generic query designer is the only pane
displayed. The properties on Query Designer are as follows:
Distinct Values = No
Output All Columns= No
Query Parameter Identification = [nothing here]
Query Parameter List = [greyed out, no parameters specified]

Thoughts?
bhc

[quoted text, click to view]
Bruce L-C [MVP]
11/9/2005 1:39:03 PM
I am in the process of upgrading and testing all my reports. I will look at
some of the more complex ones that go against Sybase and see how it works.
I'll let you know.

--
Bruce Loehle-Conger
MVP SQL Server Reporting Services


[quoted text, click to view]

Bruce L-C [MVP]
11/11/2005 9:46:28 AM
The way the generic query designer works for me is it leaves everything
exactly the way I type it in. If it has been in the graphical designer it
can get munged up. If you clean it up it should work for you.

The properties you mentioned, I don't see anyplace to see these properties?
Where are you seeing them?


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services


[quoted text, click to view]

bhc
11/14/2005 10:05:05 AM
If you right-click the generic query designer, there's an option for
Properties. Those are the properties I referenced in my previous email.

I have since been poring through the Tools | Options in Report Designer to
see if there's a way to turn off the automatic quotes and perhaps the
straight-text formatting. Any idea what these options might be? Maybe I can
customize Report Designer to behave the way I want/expect.

Thoughts?

[quoted text, click to view]
AddThis Social Bookmark Button