Question
Should I use CreateObject or Server.CreateObject?

Answers

Most of my code uses CreateObject, rather than Server.CreateObject. I used to have a strong opinion that
Server.CreateObject was somehow better, but in most cases, I no longer believe that.
CreateObject has less overhead than Server.CreateObject, because the latter uses MTS — causing significant
overhead.
You will also suffer performance hits when the component encounters errors, because with Server.CreateObject,
these errors are written to the event log (which, admittedly, can be useful during debugging).
You cannot use Server.CreateObject when accessing a component through a firewall. See KB #193230 for more
information.
However, keep in mind that there are cases where you actually need to use Server.CreateObject.
If you are using and relying on MTS to handle transactions in your application, you cannot do this with
CreateObject.
If you are using a custom or 3rd party component, such as ASPUpload, that uses the ASP intrinsic objects (Server,
Request, Response, Application, Session, ASPError, ObjectContext), CreateObject alone does not provide the
component with access to these objects.
If you have a legacy component that relies on the onStartPage and onEndPage methods, their firing cannot be
relied upon with CreateObject alone.
  Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Are you aware of Blue Crystal design of SAP GUI
  • Q What do you understand by "nfsstat -nfs -server -3" command?
  • Q In which language did Dr. Masti Venkatesh Iyengar write?
  • Q Service Tax job description?
  • Q What is high cardinality dimension?
  • Q Which is the incorrect word among the ones marked in bold?The marsupial kangaroo protects it's young one from enemies by lodging it in the pouch.
  • Q An anagram of Swap Shop, what was the purple dinosaur in the UK children's TV show of that name?
  • Q Summarise the characteristics of seminal fluid as a laboratory sample.
  • Q Where we can run two same programs on a UNIX console at the same time?
  • Q What letters are called the Twins?
  • Q Why is post-weld heat treatment (stress relieving) sometimes necessary for welded vessels?