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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Caching the Connection String - How??

Status
Not open for further replies.

sodakotahusker

Programmer
Mar 15, 2001
601
I was told by someone from Microsoft that I can create an MTS component and cache a connection string in it so all subsequent calls to objects within MTS can lookup the database connection string in this cache instead of reading the registry/ an ini file etc to get that string. Can anybody confirm that and explain how I can make that one object persist until MTS itself gets shut down?? Or should we store this value in the Shared Group Property Manager???
 
Exactly what you just said . . . Store the value (not the object) in the Shared Property Manager (SPM or SPaM). Don't ever try to store objects in SPM and don't ever try to maintain state in your objects. These things make it so you application does not scale well. - Jeff Marler B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top