Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2005

Tip: Looking for answers? Try searching our database.

How can I set the connection string via managed code?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
digitor - 18 Aug 2005 23:25 GMT
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=".....
agni - 19 Aug 2005 04:31 GMT
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=".....
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.