I am very new to ASP and VB .NET
.aspx file :
<asp:SqlDataSource ID="SqlDataSource4" runat="server"
ConnectionString="<%$ ConnectionStrings:e1ConnectionString %>"
></asp:SqlDataSource>
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString="<%$ ConnectionStrings:e1ConnectionString %>"></asp:SqlDataSource>
code behind .vb file :
Datasource-1 from SQL server instance 1 :
Dim ElcidDwConnectionString As String = "dwstring"
Dim strConnection1 As String = ConfigurationManager.AppSettings(dwstring).ToString()
Dim sqlConn1 As SqlConnection = New SqlConnection(strConnection1)
sqlConn1.Open()
Dim cmd As New SqlCommand("SELECT SR_number,t1,t2
FROM [dw1].[dbo].[StagedServiceRequest]", sqlConn)
Dim ds As New DataSet
Dim dataAdapter As SqlDataAdapter = New SqlDataAdapter(cmd)
dataAdapter.Fill(ds)
Datasource from SQL server intance-2:
SqlDataSource3.SelectCommand = "select SR_NUMBER,address,start_date from [dw2].table2"
I need to join these two data sources on the column SR_NUMBER and Build a table with the data from these two tables on the aspx page. As they are on different server I am assuming the join is not possible with them.
I was using telerik Radgrid, it assumes only a single data source for building the table.But I want the data from data sources on two different instances.
Could some one suggest me a better way of doing this. Like I need to populate the table with the information from both these data sources with or without using telerik Radgrid.