title: difference between server.createObject and createobject in asp classic
body: <p>according to</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/ms524620.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms524620.aspx</a></p>
  
  <p>you should use server.createObject</p>
  
  <blockquote>
    <p>If you are already familiar with VBScript or JScript, note that you do not use the scripting language's function for creating a new object instance (CreateObject in VBScript or New in JScript). You must use the ASP Server.CreateObject method; otherwise, ASP cannot track your use of the object in your scripts.</p>
  </blockquote>
  
  <p>but some other folks think that server.createObject implies an overhead that most times could be avoided</p>
  
  <p><a href="http://classicasp.aspfaq.com/components/should-i-use-createobject-or-server-createobject.html" rel="nofollow noreferrer">http://classicasp.aspfaq.com/components/should-i-use-createobject-or-server-createobject.html</a></p>
  
  <blockquote>
    <p>CreateObject has less overhead than Server.CreateObject, because the latter uses MTS — causing significant overhead. <br /><br />
    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). </p>
  </blockquote>
  
  <p>or</p>
  
  <p><a href="https://web.archive.org/web/20211020131240/https://www.4guysfromrolla.com/webtech/043099-1.shtml" rel="nofollow noreferrer">https://web.archive.org/web/20211020131240/https://www.4guysfromrolla.com/webtech/043099-1.shtml</a></p>
  
  <blockquote>
    <p>This can become significant if you are writing a component that deals with transactions, as it would be a good safety net to pass it through MTS, because you will be using MTS commands. However, if you are not using MTS, you could create processor and memory over head by passing it through Server.CreateObject. This makes it a better idea to use CreateObject, because it goes straight through.</p>
  </blockquote>
  
  <p>so if I'm not using mts and need no access to the builtins asp's objects (like set d = createObject("scripting.dictionary") ) is it ok to just forget about the server.createObject and go with createobject ) ???</p>
  
  <p>thanks a lot...</p>