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

telerik reporting stored procedure trdx

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Que
Top achievements
Rank 1
Que asked on 16 Dec 2015, 02:33 AM

I want file trdx connect sql stored produre

 

 <DataSources>
    <SqlDataSource ConnectionString="Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString" SelectCommand="SELECT InvoiceDetails FROM dbo.POS_Invoice WHERE LEN(InvoiceDetails) > 0" Name="sqlDataSource1" >
      <Parameters>
        <SqlDataSourceParameter DbType="String" Name="@CompanyId">
          <Value>
            <String>=Parameters.CompanyId.Value</String>
          </Value>
        </SqlDataSourceParameter>
        <SqlDataSourceParameter DbType="String" Name="@BranchId">
          <Value>
            <String>=Parameters.BranchId.Value</String>
          </Value>
        </SqlDataSourceParameter>
      </Parameters>
    </SqlDataSource>
  </DataSources>

 

thank a lot

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 18 Dec 2015, 04:22 PM
Hello Que,

The SqlDataSource Wizard allows you to specify a connection string, save the connection string by name or hard-code it, and then you can use the 'Select Statement' or 'Stored Procedure' option as a data retrieval method.

If the stored procedure has parameters, the wizard will prompt you to map the SQL parameters to report parameters or other value. Then you will be asked for design-time values allowing the wizard to retrieve the data schema (available fields).


For more details, please check the steps in the SqlDataSource Wizard help article. The wizard starts automatically when you add a SqlDatasource component in the report, or if you select the component and 'Configure' from its Context Menu.


Let us know how it goes and if you need any further help.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Que
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or