Where do DAC objects live (in Classic ASP)?

I have taken over a departing programmer's Classic ASP object, and I'm trying to debug some DAC code. The trouble is I don't really understand what DAC is or how it works -- and I can't find were the DAC code "lives".

Here's the individual line of code:

set runObj = server.CreateObject("DAC.clsDb_container")

We use SQL Server, and I looked in Enterprise Manager under Stored Procedures and User-Defined functions, but I don't see anything named clsDB_container.

Any suggestions where I can find the code for this DAC object?

The full code in context:

FUNCTION getNewGUID Dim runCON, runObj, runCMD DebugWrite( "<BEGIN> iRoutines.asp|getNewGUID (a) GUID=" & GUID & " dealernum=" & dealernum ) set runObj = server.CreateObject("DAC.clsDb_container") if not runObj.run_query("EXEC sproc_createGUID") then traperror(runObj.DB_ErrStr) else GUID = replace(runObj.get_by_ordinal(0),"-","") dealernum_len = trim(cstr(len(dealernum))) set runObj = nothing end if getNewGUID = dealernum_len & dealernum & GUID DebugWrite( "<END> iRoutines.asp|getNewGUID (b) getNewGUID=" & getNewGUID & " dealernum=" & dealernum ) END FUNCTION

-------------Problems Reply------------

This looks like a custom COM object that was written as a data access layer for the site.

The name of the object would be DAC.clsDb_container and lives in a DLL somewhere on the web server.

It is not standard - you will need to look for (I am guessing here) the VB6 or Delphi code that created it if you want to be enlightened further.

if all you need is a GUID then you could do this


Function createGuid()

Set TypeLib = Server.CreateObject("Scriptlet.TypeLib")

dim tg : tg = TypeLib.Guid

createGuid = left(tg, len(tg)-2)

Set TypeLib = Nothing

End Function


Category:asp classic Views:1 Time:2011-03-04

Related post

  • Response.Redirect in a COM+ Object Called from Classic ASP Page 2010-03-22

    Basically we moved from IIS 5 to IIS 7 and I am trying to update some of our old COM objects to .NET by rewriting them in C#. What I am have so far is a Classic ASP page calling the COM+ object and then I am trying to do a simple redirect within the

  • Intermittent ADO Recordset object error in Classic ASP script 2009-06-23

    I'm very infrequently seeing the following error logged on a website I manage: Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another When I access the classic ASP page myself, I cannot duplicate the problem

  • How to call COM object function from classic ASP 2011-07-06

    In my classic ASP site I need to call COM object function. Here is the COM component definition: interface IMyComponent : IDispatch { HRESULT GetVersion([in] int, [out] double*, [out] BSTR*); } In server side I create component object and try to call

  • 'JSON' is null or not an object' error in classic ASP 2012-03-22

    I'm getting the error in the title --JSON is null or not an object. I am inside a classic ASP page. My json2.js file is located in the same directory as this classic asp page that I'm in. So I have no idea why the server can't seem to recognize the J

  • List Keys in JScript object using VBScript (Classic ASP) 2009-08-14

    I am using the JSON2 script in an asp page to parse JSON post data. After parsing the data, I have an object in VBScript that allows for notations such as: jsonData.key I wish to parse through all the keys, however, I have no knowledge of the key nam

  • Creating a .NET StreamWriter object from classic ASP - constructor parameter problem 2009-12-29

    I'm trying to create and use a .NET StreamWriter object inside a classic ASP page (VBScript). Normally I would create the object like this: Dim writer Set writer = Server.CreateObject("System.IO.StreamWriter") However, the constructor for StreamWrite

  • How to return a JSON object in classic ASP 2011-08-08

    I want to return a JSON object using a classic ASP script (it's part of an AJAX request). If I just send the reponse as text like: response.write("{ query:'Li', suggestions:['Liberia','Libyan Arab Jamahiriya','Liechtenstein','Lithuania'], data:['LR',

  • ->>making a COM object stored in the Session available in classic asp and .net pages<<- 2013-01-08

    can you refer me to a good example on custom marshaler to serialize/deserialize the states in order to use the custom session object in both classic asp and .net pages. this article is goodhttp://msdn.microsoft.com/en-us/library/aa479313.aspx , but n

  • COM Interop (how to pass an array to the com) via classic ASP 2009-08-31

    I need to create a com object for my classic asp, since i can create a .net Assembly and have it 'Interop' with com, so i proceeded to create a .net Assembly like this:- using System; using System.Collections.Generic; using System.Runtime.InteropServ

  • Best way to manage connection strings in a project containing both Classic ASP and ASP.Net 1.1 code? 2009-10-22

    I have a project that I have inherited that is primarily a Classic ASP application; however, intermixed in the the application are a handful of ASP.net pages. Some of the ASP.net pages are 1.1 and do not use a code behind model. The classic ASP pages

  • Recommended references for classic ASP 2010-07-26

    I have to dive into a big chunk of legacy ASP code. What ressources would you recommend reading in order to grasp the best practices of this platform (object orientation, configuration for i18n, ..) --------------Solutions------------- Well classic a

  • How do I set the character set using XMLHttp Object for a POST in classic ASP? 2008-10-10

    I have to use the XMLHttp object in classic ASP in order to send some data to another server via HTTP from server to server: sURL = SOME_URL Set oXHttp = Server.CreateObject("Msxml2.XMLHTTP") oXHttp.open "POST", sURL, false oXHttp.setRequestHeader "C

  • Classic ASP: Can the "Application" global object cause dead lock? 2008-11-24

    In classic ASP there is a global object called "Application" that is accessed simultaniously by all sessions. As the "Application" object is a shared resource, can it cause dead locks? EDIT: If not, why does it has lock and unlock methods for? Refere

  • classic asp like recordset object, how to design it in .net? 2009-03-25

    With the help of you guys, I have created an object that is similiar to the recordset in classic asp. public class RecordSet: List<Dictionary<string, object>> { } So I can access the data like: RecordSet rs = new RecordSet(); rs[rowID]["c

  • Using a dictionary object in application scope in Classic ASP 2009-05-26

    Following up from my last question does anyone know how I can use a dictionary object in application scope in Classic ASP? You cannot use Scripting.Dictionary - if you try you will see something similar to the following: Application object error 'ASP

  • Why can I not get application object in classic ASP when I add a .NET Wildcard mapping to directory? 2009-06-19

    We're migrating a site from classic asp to .NET. In the process, I need to use .NET authentication to secure the classic asp pages. This works great with wildcard mapping...unless the classic asp pages try to use something like the Application object

  • how to call COM object from classic ASP 2009-07-26

    How to call COM object from classic ASP? I tried hard but cannot find a good tutorial. Any recommendations? I am using C# in classic ASP. thanks in advance, George --------------Solutions------------- If you're using JavaScript: var obj = new ActiveX

  • Classic ASP Store objects in the session object 2009-07-28

    I am new to classic ASP and I need to code a web application in classic asp because the customer wants it to be in classic asp. :( Anyways! here is my question: When I have a object of a class called person: Class Person Private m_sFirstName Public P

  • Getting 0x80070002 error intermittently when trying to instantiate a COM object in classic ASP 2009-09-09

    We have a classic ASP page that is instantiating a .Net object through a COM interface. It was working fine for a long time, but over the weekend we applied some Windows updates and it is no longer working reliably in our production environment. Some

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.084 (s). 11 q(s)