Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Environment .Connectionstring ?

Status
Not open for further replies.

cj92713696

Programmer
Nov 23, 2000
105
US
Does anyone know how to change the .Connectionstring property of the Data Environment through VB code?

I have tried to change it directly by doing a DE.ConnectionObj.Connectionstring = &quot;<connection string>&quot; but I get a new .Connectionstring to the effect of the old string w/a value appended &quot;EXTENDED&quot; and the new connection string.

Is there an example someone would be willing to post?

Thanks,
CJ
 
Don't know if you still needed help on this, but I set the connection properties of the data environment with the following code:

deName.cnName.Properties(&quot;Data Source&quot;).Value = &quot;your value&quot;
deName.cnName.Properties(&quot;Initial Catalog&quot;).Value = &quot;new value&quot;
etc...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top