Is it possible to change the hard-coded connection string in a .NET component without regenerating code?
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
- Its great that the application automatically adds some SQL code but is it possible to see exactly what the SQL injection string would be like before sending it?
- Is it possible to use just the SECURITRE for ADABAS component of SECURITRE, and not use the components for securing NATURAL, Utilities, etc.?
- Can I mix both SQLJ- and JDBC-based code in the same transaction/database connection?