ActiveReports 6 Online Help
SqlDBDataSource Class
Members  Example 

Represents a report data source based on the SqlDB ADO.NET data provider.
Object Model
SqlDBDataSource Class
Syntax
'Declaration
 
Public NotInheritable Class SqlDBDataSource 
public sealed class SqlDBDataSource 
Example
private void rptDataDynamics_ReportStart(object sender, System.EventArgs eArgs)
{
    this.ds.ConnectionString = @"Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=AdventureWorks2000;Data Source=TESTING";
    this.ds.CommandTimeout = 30;
    System.IO.StringReader sr = New System.IO.StringReader(New System.IO.StreamReader("..\\..\\sqlString.txt").ReadToEnd());
    this.ds.SQL = sr.ReadToEnd();
    sr.Close();
}
Private Sub rptDD_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Me.ds.CommandTimeout = 30
    Me.ds.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=AdventureWorks2000;Data Source=TESTING"
    Dim sr As New System.IO.StringReader(New System.IO.StreamReader("..\\..\\sqlString.txt").ReadToEnd())
    Me.ds.SQL = sr.ReadToEnd
End Sub
Inheritance Hierarchy

System.Object
   DataDynamics.ActiveReports.DataSources.SqlDBDataSource

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SqlDBDataSource Members
DataDynamics.ActiveReports.DataSources Namespace
OleDBDataSource Class
XMLDataSource Class

Send Feedback