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

Using SQL for data source from within other class

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ashley
Top achievements
Rank 1
Ashley asked on 10 Dec 2012, 02:28 PM
Hi,

I have a report that is currently using a SQL Data Source for its data, which is working fine. However, my program uses this same SQL query in various classes. This means that the same query is being stored in the sqlDataSource component within my Telerik report, as well as in my SQL.cs file, which contains all queries used within my C#.

Is there a way of getting my Telerik report to get the SQL for its data source from the SQL.cs file, rather than having to duplicate this SQL code?

Thanks,
Ashley

1 Answer, 1 is accepted

Sort by
0
Ashley
Top achievements
Rank 1
answered on 10 Dec 2012, 02:37 PM
Never mind, I have figured it out!
Tags
General Discussions
Asked by
Ashley
Top achievements
Rank 1
Answers by
Ashley
Top achievements
Rank 1
Share this question
or