Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8138097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:23:19+00:00 2026-06-06T11:23:19+00:00

I am very new to asp classic application. The below code snippet is from

  • 0

I am very new to asp classic application. The below code snippet is from a asp classic application which we are going to migrate to Windows Server 2008RC.

1.Set objConfig_Constantsinc = Server.CreateObject("Notion.Configuration")
2.Dim account
3.account = objConfig_Constantsinc.GetConfig("SQLAccount")

As per my understanding in line number 1 we are creating an instance of a COM class. Now in line number 3 using this instance we are trying to get some config data “SQLAccount” .
Here is my doubt. In classic ASP application where are we storing these type of configuration strings(For eg: “SQLAccount”). Is there any concept of global configuration file. Kindly guide me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:23:21+00:00Added an answer on June 6, 2026 at 11:23 am

    As stated in the comments & by yourself, the Notion.Configuration item is some kind of com object, if you’re porting this to the new server you dont really have a problem (assuming you port the underlying storage mechanism, i.e. the com object could be storing the vars anywhere (Eg: sql, registry, files)

    If for some reason you want to do away with the com object for storing configuration data (i.e. your question regarding the existence of a global configuration file) – there is a mechanism for doing this in Classic ASP.

    Specifically, the global.asa file, commonly, the common.asa file is placed in the root of your site and exposes application variables that can be read from any asp file within your application.

    More Details: http://msdn.microsoft.com/en-us/library/ms525316(v=vs.90).aspx

    Declaring application level globals is easy:

    Example from a global.asa:

    <script language="VBScript" runat="Server">
    Sub Application_OnStart
        Application("SQLAccount") = "whatver"
    End Sub
    

    Example in any other asp page:

    response.write Application("SQLAccount")
    

    I would remind you though, that declaring unnecessary global vars is counterproductive & you should carefully choose what to expose at a global level to avoid confusion / duplicate items in memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a rather large classic asp / SQL Server application. A new
I am VERY new to ASP.NET. I come from a VB6 / ASP (classic)
I am very new to classic ASP. I wrote a little piece of code
I am very new to ASP, it is far from my language of choice,
I am new to c#/.net and just switched over to it from classic asp(yesterday).
In my real application, I have a VB6 DLL which is called from classic
I am very new to asp.net... I have to create a page which looks
I have been asked to migrate some code to our new asp.net web app.
I'm very new to ASP.NET MVC, so forgive me if this is something I
I am relatively new to ASP.NET MVC, and am very impressed with the clarity

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.