Google Groups Home
Help | Sign in
Bug in Refresh Fields functionality?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Rohan Cragg  
View profile
 More options Jun 11 2004, 11:59 am
Newsgroups: microsoft.public.sqlserver.reportingsvcs
From: "Rohan Cragg" <rohancr...@hotmail.com>
Date: 11 Jun 2004 08:59:59 -0700
Local: Fri, Jun 11 2004 11:59 am
Subject: Bug in Refresh Fields functionality?
Whilst writing a Custom Data Processing Extension I seem to have
discovered some strange behaviour.

Following my debug trace information I can see that ExecuteReader is
being called twice whenever the Refresh Fields button is pressed, first
time round the parameters are being passed as empty strings and an
ArgumentException is thrown when trying to load a DataSet (which the
Report Designer seems to just ignore). I can see via a debug trace that
ExecuteReader then gets called a second time, this time passing the
parameters as I have entered them.

More detail is available in my blog post:
http://www.sharepointblogs.com/rcragg/archive/2004/06/11/540.aspx
Rohan.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Bruckner [MSFT]  
View profile
 More options Jun 11 2004, 2:48 pm
Newsgroups: microsoft.public.sqlserver.reportingsvcs
From: "Robert Bruckner [MSFT]" <rob...@online.microsoft.com>
Date: Fri, 11 Jun 2004 11:48:15 -0700
Local: Fri, Jun 11 2004 2:48 pm
Subject: Re: Bug in Refresh Fields functionality?
What happens if your custom data extension is called with
ExecuteReader(CommandBehavior.SchemaOnly)?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPR...

If you actually execute the query when ExecuteReader(SchemaOnly) is called
then the implementation is incorrect. For SchemaOnly execution, no parameter
values are passed in because no query should be executed - just the columns
should be returned.

When Refreshing Fields, the report designer first tries to determine the
fields based on ExecuteReader(SchemaOnly) because this should not affect any
database state (and it is cheaper). If SchemaOnly fails, then report
designer tries to actually execute the query and determine the fields based
on the returned dataset. In order to execute the query it has to pass in
parameter values.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Rohan Cragg" <rohancr...@hotmail.com> wrote in message

news:cacktv$bji@odah37.prod.google.com...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rohan Cragg  
View profile
 More options Jun 15 2004, 7:08 am
Newsgroups: microsoft.public.sqlserver.reportingsvcs
From: "Rohan Cragg" <rohancr...@hotmail.com>
Date: 15 Jun 2004 04:08:12 -0700
Local: Tues, Jun 15 2004 7:08 am
Subject: Re: Bug in Refresh Fields functionality?
OK, that's great and makes alot of sense. Clearly my implementation
needs the parameters before it can return any information because it
needs either the filepath for a serialised DataSet, or the raw XML
text, otherwise it cannot return any information on fields.

I guess I can just immediately throw an exception if
ExecuteReader(SchemaOnly) is called, unless you can suggest a more
elegant solution?

Thanks again, Rohan.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google