Hi,
Try this out, it might help you in changing the connection string.
ADOAdapterObject sdf = (ADOAdapterObject)thisXDocument.DataAdapters[Data
Connection Name];
sdf.Connection = "Connection String";
Agni
www.autonomysystems.com
(InfoPath Super Source)
> How can I change the connection string property that the data
> connections use via managed c# code? i.e. i would like the property
> "connectionString" to be set via managed c# code as outlined in the
> manifest.xsf file as shown below:
> <xsf:adoAdapter connectionString=".....