Hi I'm using .NET 2.0 and am trying to utilize the sqldatasource control in my code. It works fine except for one particular query where I have to do a join on two tables on two different databases.
The problem is that the sqldatasource control seems to only process one connection string and I'd need to supply two (1 for each database). Is there a way around this or can I not use the sqldatasource control in this instance?
Here is the code:
Many Thanks,
- VB Rookie
The problem is that the sqldatasource control seems to only process one connection string and I'd need to supply two (1 for each database). Is there a way around this or can I not use the sqldatasource control in this instance?
Here is the code:
Code:
SqlDataSource2.SelectParameters.Clear()
SqlDataSource2.SelectCommand = "usp_PriorAuth"
SqlDataSource2.SelectCommandType = SqlDataSourceCommandType.StoredProcedure
SqlDataSource2.SelectParameters.Add("ActionCode", "SEL")
SqlDataSource2.SelectParameters.Add("SelectCode", "1")
SqlDataSource2.SelectParameters.Add("BatchNbr", drpBatch.SelectedItem.Value)
SqlDataSource2.ConnectionString = DB.GetConn("TestConnect")
SqlDataSource2.ConnectionString = DB.GetConn("TestKMA")
Many Thanks,
- VB Rookie