ASP website: Access to SQL Server?

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ASP website: Access to SQL Server?

    Hello,

    I'm hoping for some general advice, because I'm feeling a bit out of
    my depth.

    I have an ASP website with ms access as the database. The db is
    realtively simple, and I think it's hit fairly lightly: all pages
    displaying info from the db use the getrows method to return arrays,
    and the connection and recordset objects are promptly closed.

    I've previously used similar techniques in an app that supported a
    base of about 250 users (although seldom more than 10 simultaneous
    connections).

    Now, my current ASP website is about to become the pulic site for our
    department. We don't anticipate heavy usage, but even so I'm worried
    about whether access is up to the job.

    I have no experience of SQL server. Yesterday I installed it (2000) on
    an older pentium 2 machine, accepting defaults and hoping for the
    best. I ran the import wizard and imported from the .mdb file. After a
    day of hair-tearing I managed to get an OLEDB connection string that
    worked. All the ASP pages intended for the public site work off SQL
    server 2000.

    My problem is, I feel a bit uncomfortable about having tried to setup
    and configure the sql server db in such a mad rush. I can make sure
    the system's patched to the hilt, but am totally ignorant about what
    admin/security horrors I may have committed in configuring it.

    So I'm not sure what to do. Should I -

    Stick with Access behind the website (hoping usage is light) while I
    try and sensibly plan a later upsize to SQL server?

    Or, given that I can run the the site off SQL server, should I switch
    over straight away (assuming the site will be much more robust), and
    worry about the details later?

    Any advice would be much appreciated
    urban Guest

  2. Similar Questions and Discussions

    1. Limited Access to Files at Website Root
      Is there a way to give access to files at my website root without giving access to all files and folders? Thank you.
    2. forbidden access to edit homepage to website
      i am trying to set up a new connection to a new website. i have been able to connect to the site but when i go to edit the home page i get an error...
    3. Website Security and Access (Good proactice)
      The website I am dealing with right now has a custom CF tag that is called at the top of every page that check different security options such as: A...
    4. securing data access via website
      I would like to use anonymous access for a public access, Win2k/IIS website. The database, however, should be accessed via a secured,...
    5. Email access through website...
      My current web hosting company offers 'email web access' where I can go to a pre-designed web site (mail.domainname.com), and type in login/PW, then...
  3. #2

    Default Re: ASP website: Access to SQL Server?

    Thanks for the reply

    "Bob Barrows" <reb_01501@yahoo.com> wrote in message news:<#xiVtTDWDHA.2008@TK2MSFTNGP11.phx.gbl>...
    > If all you are doing is displaying data from the database using GetRows,
    > then Access should certainly be up to the task. it's when you get into data
    > maintenace that Access can bog down. Make sure you don't use cursors
    > (recordsets) for data maintenance: queries, especially saved parameter
    > queries, should be used. And make sure you keep this mantra in mind: open
    > late...close early. In other words, do not open your database connection
    > until you are ready to use it, and close it as soon as you are finished with
    > it.
    I think this is what I'm doing. I don't do anything at all with the
    recordset except dump it into an array (GetRows) and then close it.
    The page display is built entirely by manipulation of the 2-D array
    returned by the GetRows method.

    Will this maximize the number of connections Access can handle? I
    mean, I know that access has a limit of 255 connections, but I don't
    really know what this means in practice. Does it mean that if 254 user
    simultaneously hit a page making a db call it would be OK? How about
    if 1000 users hit the same page in sequence with one or a few seconds
    between them?

    I guess I'm just not sure what sort of site traffic it's reasonable to
    expect access to support. My feeling is that most of the time it would
    be OK, but but it might get pushed close to or over its limit during a
    few busy periods.
    urban Guest

  4. #3

    Default Re: ASP website: Access to SQL Server?

    urban wrote:
    > Thanks for the reply
    >
    > "Bob Barrows" <reb_01501@yahoo.com> wrote in message
    > news:<#xiVtTDWDHA.2008@TK2MSFTNGP11.phx.gbl>...
    >
    >> If all you are doing is displaying data from the database using
    >> GetRows,
    >> then Access should certainly be up to the task. it's when you get
    >> into data
    >> maintenace that Access can bog down. Make sure you don't use cursors
    >> (recordsets) for data maintenance: queries, especially saved
    >> parameter
    >> queries, should be used. And make sure you keep this mantra in mind:
    >> open
    >> late...close early. In other words, do not open your database
    >> connection
    >> until you are ready to use it, and close it as soon as you are
    >> finished with
    >> it.
    >
    > I think this is what I'm doing. I don't do anything at all with the
    > recordset except dump it into an array (GetRows) and then close it.
    Good
    > The page display is built entirely by manipulation of the 2-D array
    > returned by the GetRows method.
    >
    > Will this maximize the number of connections Access can handle?
    Not really - that number is fixed. What it will do is minimize the number of
    connections being used since connections can be re-used if not in use. (this
    is referred to as OLEDB Session Sharing if using OLEDB, which you should, or
    ODBC Connection Sharing if ODBC)
    > I
    > mean, I know that access has a limit of 255 connections, but I don't
    > really know what this means in practice.
    This means that the maximum users that can be created in a secured database
    is 255.
    > Does it mean that if 254 user
    > simultaneously hit a page making a db call it would be OK? How about
    > if 1000 users hit the same page in sequence with one or a few seconds
    > between them?
    If you keep the connections short, this could amount to 1 connection being
    re-used 1000 times: no problem at all. However, if you aren't religious
    about minimizing the time that the connection is open on the page, the 60th
    user could start seeing some delays ...
    >
    > I guess I'm just not sure what sort of site traffic it's reasonable to
    > expect access to support. My feeling is that most of the time it would
    > be OK, but but it might get pushed close to or over its limit during a
    > few busy periods.
    You might want to search the MS website for and download and try WAST, the
    Web Application Stress Testing tool.

    HTH,
    Bob Barrows



    Bob Barrows Guest

  5. #4

    Default Re: ASP website: Access to SQL Server?

    > > "Bob Barrows" <reb_01501@yahoo.com> wrote in message
    > > news:<#xiVtTDWDHA.2008@TK2MSFTNGP11.phx.gbl>...
    > >
    >
    > > Does it mean that if 254 user
    > > simultaneously hit a page making a db call it would be OK? How about
    > > if 1000 users hit the same page in sequence with one or a few seconds
    > > between them?
    >
    > If you keep the connections short, this could amount to 1 connection being
    > re-used 1000 times: no problem at all. However, if you aren't religious
    > about minimizing the time that the connection is open on the page, the 60th
    > user could start seeing some delays ...
    >
    OK, so this makes me feel more confident about going live and sticking
    with Access for now.
    >You might want to search the MS website for and download and try
    >WAST, the Web Application Stress Testing tool.
    Found it, I'll give it a try tomorrow.

    Thanks again
    urban Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139