Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to change the hard-coded connection string in a .NET component without regenerating code?

0
Posted

Is it possible to change the hard-coded connection string in a .NET component without regenerating code?

0

One can override the hard-coded “connection string” through COM+ Explorer. The TierDeveloper generated code overrides “Construct” method so as to allow the user to change the connection value for a registered component/assembly. TierDeveloper generated code first looks there for a connection string and if it doesn’t find it there only then does it use the default “hard-coded” connection string. Launch “Components Services” and then select Properties dialog for one or more MTS objects and specify a different connection string (use Activation tab to specify Constructor string value under Object construction section).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123