once one problem is solved a new one enters. I am trying to do a simple query of selecting an ID number from one table and matching it with the ID number in the other table, however the catch is the two tables are stored on two different sql databases.
I have filled a Gridview
Dim sqlconn As New SqlConnection(My.Settings.ConnectionString) sqlconn.Open() Dim command As New SqlCommand("SELECT InvoiceNumber, NetTotal FROM Invoices", sqlconn) Dim da As New SqlDataAdapter(command) Dim ds As New DataSet da.Fill(ds) GridInvoice.DataSource = ds GridInvoice.DataBind() sqlconn.Close()
This post has been edited by modi123_1: 18 November 2010 - 12:02 PM
Reason for edit:: added code tags