how to go about a project

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default how to go about a project

    Here is my dilemma,

    I am about to start a project using ColdFusion and SQL Server 2000. Right now,
    there is a site does on the fly charting for different city statistics. That
    all works great. Where I come in is that I have to develop a part of the site
    where people who
    do not know really anything about databases. I have to make a site that will
    allow someone (not anyone) come in and update
    the database with knew statistics. There are about 50+ tables and each has
    anywhere from 10's to 100's of records already in them. Now when I do this, I
    have to use stored procedures. I was thinking about how I was going to go about
    doing it, but all I am coming up with is writing a stored procedure for every
    table and then on the page, depending on what table they want to update, call
    that sp. Now I am no where near an expert on either ColdFusion or stored
    procedures, but I do know some things and I pick up on things relatively fast.
    I'm not looking for a solution, but some ideas on what route I want to take, or
    ways so that I do not have to write 50+ stored procedures. If you need any more
    information or there is something I left out, ask away. I'll keep checking this
    post.

    Thanks in advance for everyone's help,

    Ryan

    sdtke212 Guest

  2. Similar Questions and Discussions

    1. new project [615]
      Or you can use Querix Hydra Compiler, which not only provides you with a windows front end (Phoenix) it also allows you to add in your own ActiveX...
    2. Project Help
      Hi I am fairly new to Director but would to get started, I am using Version 8 and would like suggestions on a project to start on. Any...
    3. project using ASP
      Hi All, You may be interested in my Head Injuries Project, which I doing as part of my MSc project at the University of Gloucestershire and would...
    4. Large PHP Project... Need Project Manager
      Hey, I've got a nice CMS (in quite stable 2.0 form) that I need a Project Manager who can just deal with some bugs/answer questions for the next...
    5. who can help me... my first asp project...
      Hi, I thought i had my asp script working.... It is a news script with a access db... At this point i can't seem to be able to edit,...
  3. #2

    Default Re: how to go about a project

    Ryan,

    Without knowing the complete structure of the database and relationships of
    the tables, I can only give an overview.

    I would assume that there would be a "main" table and then the other tables
    would be related to this table via a forieng key. But some tables could be
    related to related tables of the "main" table.

    So I would also assume that when the user needs to update/insert into these
    tables it would be associated to a single record.
    So you need to give the user the functionality to select a record of updating.
    Once the record is selected a query would return all information (whether
    direct or related). This would then be displayed in a form. The user would
    then update any/all fields and submit the form.

    The "action" page that this form is submitted to would then call the stored
    procedure to update the required tables.

    Thus in acuallity you would only need one stored procedure. Of cause this is
    all dependant upon the tables relationships in the database. But it will give
    you a starting point and something to work on.

    Ken

    The ScareCrow Guest

  4. #3

    Default Re: how to go about a project

    Ken,

    I don't have access to the database right now but off the top of my head and
    from what I remember, the person who orginally designed the database did not do
    the best of jobs. I do not believe any of the tables are related to one
    another, just 50+ tables in one database. There is also no updating of the
    fields, just inserting new fields.

    One of the ways I thought of going was through I believe a CFGRID. I would
    query the database and have all or maybe the most recent 5 rows displayed in
    the grid. Then allow the user the insert the information they needed and submit
    the form.

    Maybe I should mention before that I had this entire site done previously
    using PHP. Although when doing it before, I could just write the queries right
    in the code and the insert queries were generated retrieving the field names
    into an array, and then looping through the array and through each loop,
    appending a field name to the query. Worked great. However, I am not sure how
    this would work using stored procedure's and from the little knowledge I have
    about them, if it is even possible.

    Thanks for the advice,

    Ryan

    sdtke212 Guest

  5. #4

    Default Re: how to go about a project

    I do not believe any of the tables are related to one another

    I would really hope not.

    Before I can advise you any further, you will need to examine the database and
    determine how the tables are used in the actual application. If they are all
    independant tables, then you will not have much choice but to develop a sp for
    each table.

    But if the tables are used in a single application then I would have to assume
    that they are related to each other in some way, maybe not the correct way but
    some way.

    There is also no updating of the fields, just inserting new fields
    If this is the case then all you will need is a form(s) to insert new records
    into the tables. I would also assume that in the sp you will need to check if
    the record already exists in the table and if so, do not insert it.

    Ken

    The ScareCrow 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