Arul Jesuraj

Arul Jesuraj

  • 1.6k
  • 109
  • 22.4k

How to change dataset QUERY connection string at runtime in

Aug 30 2013 3:28 AM
Hi,

I've a dataset called MyDataSet.XSD. I want to access this in code behind and assign different connection strings based on user logs in.

I've TableAdapters and Queries configured to it.

I access Adapters like below:
objDa.Connection.ConnectionString="myConString";

How assign to Query in dataset dynamically in asp.net?