Thursday, March 29, 2012
Field list is empty when calling stored procedure
I am having problems retrieving list of fields when using stored
procedure as Dataset Source. I noticed that Reporting Services can retrieve
field list if stored procedure is trivial (simple select etc.). In my case,
I am insrting into temporary table and after some manipulations return
resultset. SQL Trace show that RS tries to execute SET FMTONLY ON <sp_name>
SET FMTONLY OFF when reading list of the fiels. This returns empty result
for my stored procedure.
I can not move any further without field list being populated properly. I
can try to replace stored procedure with the view etc. but I would really
like to know if someone experienced similar problems.
Any help is greately appreciated,
IgorIgor,
I have experienced that same behavior. The stored procedure will run but
I will not get a field list. I received the error that told me to hit
REFRESH to get the fields list ... I returned to the data tab, ran the
procedure and hit the refresh button ... then when I returned to layout tab
... the fields list was there. Otherwise I have read in books that you have
to type in your own fields list which to me was not a very acceptable answer
as my fields list was quite extensive. Hope that helps you!
MJ
"imarchenko" wrote:
> Hello!
> I am having problems retrieving list of fields when using stored
> procedure as Dataset Source. I noticed that Reporting Services can retrieve
> field list if stored procedure is trivial (simple select etc.). In my case,
> I am insrting into temporary table and after some manipulations return
> resultset. SQL Trace show that RS tries to execute SET FMTONLY ON <sp_name>
> SET FMTONLY OFF when reading list of the fiels. This returns empty result
> for my stored procedure.
> I can not move any further without field list being populated properly. I
> can try to replace stored procedure with the view etc. but I would really
> like to know if someone experienced similar problems.
> Any help is greately appreciated,
> Igor
>
>
Tuesday, March 27, 2012
Few recommended and useful articles
http://www28.brinkster.com/avdotnet/articles.aspThank you! You solved an issue I had with parameters in URL access!
"avnrao" <avn@.newsgroups.com> wrote in message
news:e2OAFxErEHA.1232@.TK2MSFTNGP11.phx.gbl...
> few useful articles on Reporting services..
> http://www28.brinkster.com/avdotnet/articles.asp
>
Monday, March 26, 2012
FETCH in Reporting Services
for the past year on a learn as I go basis. I need to find a good book
for programming RS. I primarily work in C# and know that you can use
code to create a report in RS. Unfortunatly I am someone that needs
assistance in getting started with something, but once I have that
point in the right direction I can expand on that. I hope I am somewhat
helpful to all that are here and that I can learn a lot from everyone.
HAPPY HOLIDAYS! My question is below.
I wrote a query in SQL using a fetch. It works fine when I run it in
query analyzer, but when I try to run it in RS it does not work. I get
the result from the first select query that sets the cursor. I need to
know if there is a way to get past this first select statement and get
the information I am trying to get. Any help would be appreciated.Just a suggestion - find a work around.
Write a stored procedure instead.
Or avoid using cursors at all costs, unless you're using cursor's specific
functionality.
There are better ways to do simple iterations in SQL Server, rather then
using cursors.
"samoore" <samoore30@.gmail.com> wrote in message
news:1135089582.519825.59000@.g47g2000cwa.googlegroups.com...
> My name is Scott Moore, I am new to this group. I have worked with RS
> for the past year on a learn as I go basis. I need to find a good book
> for programming RS. I primarily work in C# and know that you can use
> code to create a report in RS. Unfortunatly I am someone that needs
> assistance in getting started with something, but once I have that
> point in the right direction I can expand on that. I hope I am somewhat
> helpful to all that are here and that I can learn a lot from everyone.
> HAPPY HOLIDAYS! My question is below.
> I wrote a query in SQL using a fetch. It works fine when I run it in
> query analyzer, but when I try to run it in RS it does not work. I get
> the result from the first select query that sets the cursor. I need to
> know if there is a way to get past this first select statement and get
> the information I am trying to get. Any help would be appreciated.
>
Friday, March 23, 2012
Feedback on Report Customization requirements
I would like to get some feedback from the users/customers of SQL Server
Reporting Services and other reporting technologies on common customization
requirements for reports.
Let's assume that you have purchased a customizable business/ERP application
from an Independent Solution Vendor and that the application contains a
number of built in reports. Alternatively you could be a consultant/vendor
who customizes applications to suit specific customer requirements.
What are the common types of customizations that you are likely to implement
(or have implemented in such scenarios) on the base set of reports to tailor
them to suit your/your customer requirements prior to deploying the app in
your environment?
Some examples of customizations are:
a) Adding additional fields to a report
b) Adding additional data regions to a report (Example: Adding an Employee
Sales summary chart to an Employee details report)
c) Replacing a data region with an alternate data region (Example: Replacing
a matrix report that displays product category sales by Year with a chart
that plots Sales figures using Product Category as the Category group and
Year as the Series group)
d) Enhancing a data region (Example: Adding addition row/column groupings to
a matrix report and enabling drill down functionality)
etc...
Looking forward to hearing some feedback on this topic.
Thanks
KarthikI think the top three reasons our users want to customize the standard
reports they receive as part of the software are:
1) They want to add additional fields. Sometimes these fields are returned
by the stored procedure the report's using to gather its data, sometimes
they're not. In the case that they're not, our users are often unsuccessful
at finding where the data they need is in the database and how to do the
proper joins to get it. If the data they need repeats it's even more complex
for them to implement.
2) They want to modify the sorting, grouping, or filtering of the report.
Right now we're using Crystal Reports for our reporting product, though
we're strongly considering moving to SQL Reporting Services due to the many
problems we've had with Crystal. If users have had Crystal Reports training
they can usually modify the sort and filter criteria (though the filtering
would likely be a less efficient client-side filter rather than changing the
stored procedure), but changing the grouping is a more advanced topic that's
a little trickier to understand.
My feeling is that finding the commands for changing the sorting and
filtering in SQL Reporting Services is currently not as straightforward as
an in Crystal, mostly due to the free-form layout vs. banded report writer
paradigm shift. Grouping seems about the same in both environments. More
wizards or putting some of these tasks in a VS .Net 2005-style common tasks
menu on the right of controls might be ways to simplify things for end
users.
3) They want to change the appearance of the report (i.e. they want all
their print outs to be Times New Roman instead of Arial, add their logo,
etc.). This isn't done very commonly these days because of the effort
involved with changing close to 100 reports, and the customer would have to
repeat this effort in order to stay current when we release an update to the
standard reports. Our thought is that were we to support either of these
things going forward, it would be best to build our standard reports with
places for a logo or formulas for the text fonts that would be based on some
DB system-wide option in our software.
Jeff Davis
"Karthik Ravindran [MSFT]" <Karthik Ravindran
[MSFT]@.discussions.microsoft.com> wrote in message
news:99C32B25-9979-4120-B04E-6CDBB7B03AD3@.microsoft.com...
> Hello,
> I would like to get some feedback from the users/customers of SQL Server
> Reporting Services and other reporting technologies on common
customization
> requirements for reports.
> Let's assume that you have purchased a customizable business/ERP
application
> from an Independent Solution Vendor and that the application contains a
> number of built in reports. Alternatively you could be a consultant/vendor
> who customizes applications to suit specific customer requirements.
> What are the common types of customizations that you are likely to
implement
> (or have implemented in such scenarios) on the base set of reports to
tailor
> them to suit your/your customer requirements prior to deploying the app in
> your environment?
> Some examples of customizations are:
> a) Adding additional fields to a report
> b) Adding additional data regions to a report (Example: Adding an Employee
> Sales summary chart to an Employee details report)
> c) Replacing a data region with an alternate data region (Example:
Replacing
> a matrix report that displays product category sales by Year with a chart
> that plots Sales figures using Product Category as the Category group and
> Year as the Series group)
> d) Enhancing a data region (Example: Adding addition row/column groupings
to
> a matrix report and enabling drill down functionality)
> etc...
> Looking forward to hearing some feedback on this topic.
> Thanks
> Karthik
Wednesday, March 21, 2012
Faxing In Sql Reporting Services
I have read a couple of references to creating "Custom Delivery Extensions", which could potentially handle faxing from a sql report. However I havent got any further than that.
Can anyone point me to a link or give me some idea as to how I might go about this.
Thanks,
Efax provides a web service for faxing documents.
http://www.efaxdeveloper.com/developer/twa/page/howWorks
So you could write a delivery extension that interfaces with this web service or you can use the email delivery extension to deliver it to a certain email address and have you app check this mailbox periodically and then fax out any reports it receives.
Please note that I am not endorsing efax or claiming its suitable for your purposes. I am merely suggesting a place to begin your investigations.
Sunday, February 26, 2012
Farmat number into Date
the date. ie 20041201 (yyyymmdd)
What would be the best way to convert this into a date with the format
dd/mm/yy.
I regularly use this field with a parameter to allow my usres to generate
their own reports.
Thanks in advanceLook at the DateTime structure and its constructors:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatetimememberstopic.asp
The following expression would convert the field into a valid DateTime
object:
=new DateTime(Left(CStr(Fields!Date.Value), 4), Mid(CStr(Fields!Date.Value),
5, 2), Right(CStr(Fields!Date.Value), 2))
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tango" <Tango@.discussions.microsoft.com> wrote in message
news:9EA0FDAC-20C4-459A-AD30-AE5F439A38B2@.microsoft.com...
>I am reporting off an oracle database that has a field with a number that
>is
> the date. ie 20041201 (yyyymmdd)
> What would be the best way to convert this into a date with the format
> dd/mm/yy.
> I regularly use this field with a parameter to allow my usres to generate
> their own reports.
> Thanks in advance|||Thank you Robert,
At what point would you recommend i use this expression.
Is it possible to use at the dataset stage and if so how.
Regards
Todd
"Robert Bruckner [MSFT]" wrote:
> Look at the DateTime structure and its constructors:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatetimememberstopic.asp
> The following expression would convert the field into a valid DateTime
> object:
> =new DateTime(Left(CStr(Fields!Date.Value), 4), Mid(CStr(Fields!Date.Value),
> 5, 2), Right(CStr(Fields!Date.Value), 2))
>
> -- Robert
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Tango" <Tango@.discussions.microsoft.com> wrote in message
> news:9EA0FDAC-20C4-459A-AD30-AE5F439A38B2@.microsoft.com...
> >I am reporting off an oracle database that has a field with a number that
> >is
> > the date. ie 20041201 (yyyymmdd)
> >
> > What would be the best way to convert this into a date with the format
> > dd/mm/yy.
> > I regularly use this field with a parameter to allow my usres to generate
> > their own reports.
> >
> > Thanks in advance
>
>|||If you want to perform the conversion in the query instead of inside the
report (or by adding a calculated field on the dataset), you have to find
function calls in the query language that allow you to convert the field
into a DateTime object. The data provider / database server of the data
source will determine the language that has to be used (T-SQL, PL/SQL, etc.)
-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tango" <Tango@.discussions.microsoft.com> wrote in message
news:63B337CF-3563-4DA4-AC77-18429117803F@.microsoft.com...
> Thank you Robert,
> At what point would you recommend i use this expression.
> Is it possible to use at the dataset stage and if so how.
> Regards
> Todd
> "Robert Bruckner [MSFT]" wrote:
>> Look at the DateTime structure and its constructors:
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatetimememberstopic.asp
>> The following expression would convert the field into a valid DateTime
>> object:
>> =new DateTime(Left(CStr(Fields!Date.Value), 4),
>> Mid(CStr(Fields!Date.Value),
>> 5, 2), Right(CStr(Fields!Date.Value), 2))
>>
>> -- Robert
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Tango" <Tango@.discussions.microsoft.com> wrote in message
>> news:9EA0FDAC-20C4-459A-AD30-AE5F439A38B2@.microsoft.com...
>> >I am reporting off an oracle database that has a field with a number
>> >that
>> >is
>> > the date. ie 20041201 (yyyymmdd)
>> >
>> > What would be the best way to convert this into a date with the format
>> > dd/mm/yy.
>> > I regularly use this field with a parameter to allow my usres to
>> > generate
>> > their own reports.
>> >
>> > Thanks in advance
>>
Friday, February 24, 2012
Failure to create a Report Project within Visual Studio 2003
VS.NET 2003 installed and I had then installed Sql Reporting Services with
the latest service pack. If I try and then create a reporting project within
a pre-existing solution, it gives me the following error.
Class already exists.
I looked at the knowledge base and it seems that this behaviour is caused by
a mis-behaving add-in. Subsequently, I disabled all of my add-ins within the
add-in manager and tested again. The problem still exists.
Any other ideas on what I should try?
Thanks,
Darren.On Thu, 7 Apr 2005 07:55:02 -0700, "dmpenner"
<dmpenner@.discussions.microsoft.com> wrote:
>I'm having a problem creating a Report Project within Visual Studio. I have
>VS.NET 2003 installed and I had then installed Sql Reporting Services with
>the latest service pack. If I try and then create a reporting project within
>a pre-existing solution, it gives me the following error.
>Class already exists.
>I looked at the knowledge base and it seems that this behaviour is caused by
>a mis-behaving add-in. Subsequently, I disabled all of my add-ins within the
>add-in manager and tested again. The problem still exists.
>Any other ideas on what I should try?
>Thanks,
>Darren.
Darren,
If you try to create a new project from the File menu (choose the
Wizard option for speed) does that create a working report or not?
Andrew Watt
MVP - InfoPath|||Andrew,
Just tried creating a new report project from the file menu and I still get
the same "Class already exists" message. If I look in my local directory
where I'm trying to create the new project, a folder is created there with a
virtually empty .rptproj file with the following contents.
<?xml version="1.0"?>
<Project xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xmlns:xsd="">http://www.w3.org/2000/10/XMLSchema">
<DataSources />
<Reports />
</Project>
I can't however, see the project in the solution explorer and it doesn't
seem to be added to the solution file. Any other suggestions?
Thanks,
Darren.
"Andrew Watt [MVP - InfoPath]" wrote:
> On Thu, 7 Apr 2005 07:55:02 -0700, "dmpenner"
> <dmpenner@.discussions.microsoft.com> wrote:
> >I'm having a problem creating a Report Project within Visual Studio. I have
> >VS.NET 2003 installed and I had then installed Sql Reporting Services with
> >the latest service pack. If I try and then create a reporting project within
> >a pre-existing solution, it gives me the following error.
> >
> >Class already exists.
> >
> >I looked at the knowledge base and it seems that this behaviour is caused by
> >a mis-behaving add-in. Subsequently, I disabled all of my add-ins within the
> >add-in manager and tested again. The problem still exists.
> >
> >Any other ideas on what I should try?
> >
> >Thanks,
> >Darren.
> Darren,
> If you try to create a new project from the File menu (choose the
> Wizard option for speed) does that create a working report or not?
> Andrew Watt
> MVP - InfoPath
>|||Darren,
This isn't something I have seen before so the following questions are
simply trying to identify more clearly your specific
setup/circumstances.
Can you describe your setup in more detail? Which add-ins do you have?
When did you disable them?
Have you ever (I assume not, but want to be clear) created an RS
report successfully on that machine?
Apart from RS is Visual Studio working normally?
Andrew Watt
MVP - InfoPath
On Thu, 7 Apr 2005 08:55:03 -0700, "dmpenner"
<dmpenner@.discussions.microsoft.com> wrote:
>Andrew,
>Just tried creating a new report project from the file menu and I still get
>the same "Class already exists" message. If I look in my local directory
>where I'm trying to create the new project, a folder is created there with a
>virtually empty .rptproj file with the following contents.
><?xml version="1.0"?>
><Project xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
>xmlns:xsd="">http://www.w3.org/2000/10/XMLSchema">
> <DataSources />
> <Reports />
></Project>
>I can't however, see the project in the solution explorer and it doesn't
>seem to be added to the solution file. Any other suggestions?
>Thanks,
>Darren.
>"Andrew Watt [MVP - InfoPath]" wrote:
>> On Thu, 7 Apr 2005 07:55:02 -0700, "dmpenner"
>> <dmpenner@.discussions.microsoft.com> wrote:
>> >I'm having a problem creating a Report Project within Visual Studio. I have
>> >VS.NET 2003 installed and I had then installed Sql Reporting Services with
>> >the latest service pack. If I try and then create a reporting project within
>> >a pre-existing solution, it gives me the following error.
>> >
>> >Class already exists.
>> >
>> >I looked at the knowledge base and it seems that this behaviour is caused by
>> >a mis-behaving add-in. Subsequently, I disabled all of my add-ins within the
>> >add-in manager and tested again. The problem still exists.
>> >
>> >Any other ideas on what I should try?
>> >
>> >Thanks,
>> >Darren.
>> Darren,
>> If you try to create a new project from the File menu (choose the
>> Wizard option for speed) does that create a working report or not?
>> Andrew Watt
>> MVP - InfoPath