This is a migrated thread and some comments may be shown as answers.

No Data Source with Project data source

3 Answers 473 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David Gregory
Top achievements
Rank 1
David Gregory asked on 04 Apr 2012, 08:56 PM
Hello,

I tried to define a project SqlDataSource using a stored procedure. I defined it with a default value as required in order to see it in the Data Explorer. However, when I go to select the table item I applied the data source to, the Data Explorer shows No Data Source.

I used SQL Profiler to see what was happening. When I click on the data source at the bottom of the designer it executes the stored procedure with all parameters as null, thus returning no result set.

I opened the SqlDataSource component I created and it does have the parameter defined with a default value.

Oh, and if you select Preview it returns data.

Any help would be appreciated.

3 Answers, 1 is accepted

Sort by
0
David Gregory
Top achievements
Rank 1
answered on 05 Apr 2012, 03:04 PM
A few more things to pass along....

I created a report SqlDataSource and I'm still having the same problem. If I click either on the data source item or table item in the designer No Data Source is still displayed. The difference this time is that it is passing the stored procedure parameter value and is returning data.

Also, if I open another project (which I downloaded from Telerik) I still have the same problem.

And finally, if I create a brand new report using the Report Wizard, the wizard does not continue pass the data source creation section. My guess is that this relates to the problem with the data source.

It should also be noted that I reinstalled VS 2010 last night and that didn't solve anything.
0
David Gregory
Top achievements
Rank 1
answered on 05 Apr 2012, 04:53 PM
I identified the problem. When report designer queries for the metadata from SQL Server it uses SET FMTONLY ON. The stored procedure contains dynamic SQL. There seems to be a bug with how SQL Server handles this specific case.

I'll figure out a work around.

Thanks.

0
Steve
Telerik team
answered on 06 Apr 2012, 07:18 AM
Hi David,

You can see the workaround in the following forum post.

All the best,
Steve
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
Tags
General Discussions
Asked by
David Gregory
Top achievements
Rank 1
Answers by
David Gregory
Top achievements
Rank 1
Steve
Telerik team
Share this question
or