How to read an SQL Server into a ASP page and then change, add, delete and write it back to SQL Server

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

  1. #1

    Default How to read an SQL Server into a ASP page and then change, add, delete and write it back to SQL Server

    Hello All

    I need to read a SQL Server table into a Web Page and within the Web
    Page to permit my users to make changes to the records, delete or add
    new records and then save the entire contents back to the SQL Server
    table back.

    The functionality I am looking is almost the same as In the SQL
    Enterprise Manager whereby I can choose a table open the table and
    then return all rows and I can maintain the same and save it back to
    the SQL Server table. I want almost a similar web interface to such a
    functionality.

    Even if not a generic functionality as the SQL Enterprise Manager
    table maintenance appreciate if somebody can share the code with a
    sample how I can do it in ASP pages + T-SQL if need be.

    Thanks
    Belinda
    Belinda Guest

  2. Similar Questions and Discussions

    1. Can I use Flex to write a server app?
      I know Flex is mostly used as UI or front end. My scenario is to use Flex as a running server app to receive update from remote device and then...
    2. write text file to the server
      What I am trying to do is get query results then use the results mixed with a little bit of simple HTML and then save that as a .txt file in a...
    3. Having an ASP.Net server write a flie to another server
      Hi all I am trying to have my ASP.Net server write a file onto another server. I continue to have security issues when attempting to do this. ...
    4. To can write with asp page and read to all
      Hi workers, may be so simple but I think no, if you use an hosting service. I can't settings rwx permission as I like, so I'm thinking to...
    5. File system get auto change from read-write to read-oly
      I have a very strange file system with OS Redhat 7.2 The file system is read-write, but some how it randomly changes to read-only at any time....
  3. #2

    Default Re: How to read an SQL Server into a ASP page and then change, add, delete and write it back to SQL Server

    On 10 Jun 2004 01:20:10 -0700, [email]belindacur@yahoo.com[/email] (Belinda) wrote:
    >I need to read a SQL Server table into a Web Page and within the Web
    >Page to permit my users to make changes to the records, delete or add
    >new records and then save the entire contents back to the SQL Server
    >table back.
    That's an extremely ineficient design. Send *everything* to the web
    page, then send *everything* back, even for just changing a single
    phone number?
    >The functionality I am looking is almost the same as In the SQL
    >Enterprise Manager whereby I can choose a table open the table and
    >then return all rows and I can maintain the same and save it back to
    >the SQL Server table. I want almost a similar web interface to such a
    >functionality.
    Then it's *not* the same. You change a row in the Enterprise Manager
    and it changes just that data in the table.
    >Even if not a generic functionality as the SQL Enterprise Manager
    >table maintenance appreciate if somebody can share the code with a
    >sample how I can do it in ASP pages + T-SQL if need be.
    Pull up a list of records that match a criteria (reduce the amount of
    data sent), then when a single record is clicked on to change, pull
    the full record into a form. Edit it and do an UPDATE on that record
    by clicking a "Save Changes" button. Simpler, faster and infinitely
    expandable. Plenty of sample code on the internet for each portion of
    this.

    Jeff
    Jeff Cochran Guest

  4. #3

    Default Re: How to read an SQL Server into a ASP page and then change, add, delete and write it back to SQL Server

    Belinda wrote:
    > Hello All
    >
    > I need to read a SQL Server table into a Web Page and within the Web
    > Page to permit my users to make changes to the records, delete or add
    > new records and then save the entire contents back to the SQL Server
    > table back.
    >
    > The functionality I am looking is almost the same as In the SQL
    > Enterprise Manager whereby I can choose a table open the table and
    > then return all rows and I can maintain the same and save it back to
    > the SQL Server table. I want almost a similar web interface to such a
    > functionality.
    >
    You definitely have the wrong idea about what's going on in the Enterprise
    Manager interface. Be that as it may, you do NOT want to give your users the
    ability to bring ALL the records from a table into their browser. A web
    application running in a browser is miles from having the same capabilities
    as a client application installed on a user's machine.

    I suggest you pick up one of the Wrox books on database programming with ASP
    and eductate yourself.

    In the meantime, you may want to download and try out one of the generic
    database tools for database editing available on te web. One such tool is
    Eli Robillard's GenericDB which is available at [url]www.genericdb.com[/url]. This will
    give you a starting point and allow you to see what needs to be done.

    Bob Barrows
    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

  5. #4

    Default Re: How to read an SQL Server into a ASP page and then change, add, delete and write it back to SQL Server

    "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message news:<OYW0bMuTEHA.556@tk2msftngp13.phx.gbl>...
    > Belinda wrote:
    > > Hello All
    > >
    > > I need to read a SQL Server table into a Web Page and within the Web
    > > Page to permit my users to make changes to the records, delete or add
    > > new records and then save the entire contents back to the SQL Server
    > > table back.
    > >
    > > The functionality I am looking is almost the same as In the SQL
    > > Enterprise Manager whereby I can choose a table open the table and
    > > then return all rows and I can maintain the same and save it back to
    > > the SQL Server table. I want almost a similar web interface to such a
    > > functionality.
    > >
    >
    > You definitely have the wrong idea about what's going on in the Enterprise
    > Manager interface. Be that as it may, you do NOT want to give your users the
    > ability to bring ALL the records from a table into their browser. A web
    > application running in a browser is miles from having the same capabilities
    > as a client application installed on a user's machine.
    >
    > I suggest you pick up one of the Wrox books on database programming with ASP
    > and eductate yourself.
    >
    > In the meantime, you may want to download and try out one of the generic
    > database tools for database editing available on te web. One such tool is
    > Eli Robillard's GenericDB which is available at [url]www.genericdb.com[/url]. This will
    > give you a starting point and allow you to see what needs to be done.
    >
    > Bob Barrows


    Hi Bob

    Thanks for your tips. Please note the tables I will be permitting to
    edit have less than 2000 records so network impact is minimal secondly
    I am not planning to let all users maintain these tables.

    This is a what if analysis system users change the assumptions in some
    these tables which maintain the assumptions they keep iteratively
    changing the assumptions unless they meet the goal.

    Please highlight to me if there is a better way of maintaining this
    kind of asssumptions in a what if analysis situation. We have a number
    of users doing what if analysis on a SQL server database and some of
    them are remote hence we want to provided some kind of a data grid to
    enable them to maintain these assumptions.

    Thanks
    Belinda
    Belinda Guest

  6. #5

    Default Re: How to read an SQL Server into a ASP page and then change, add, delete and write it back to SQL Server

    Belinda wrote:
    > "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
    > news:<OYW0bMuTEHA.556@tk2msftngp13.phx.gbl>...
    >> Belinda wrote:
    >>> Hello All
    >>>
    >>> I need to read a SQL Server table into a Web Page and within the Web
    >>> Page to permit my users to make changes to the records, delete or
    >>> add
    >>> new records and then save the entire contents back to the SQL Server
    >>> table back.
    >>>
    >>> The functionality I am looking is almost the same as In the SQL
    >>> Enterprise Manager whereby I can choose a table open the table and
    >>> then return all rows and I can maintain the same and save it back to
    >>> the SQL Server table. I want almost a similar web interface to such
    >>> a
    >>> functionality.
    >>>
    >>
    >> You definitely have the wrong idea about what's going on in the
    >> Enterprise
    >> Manager interface. Be that as it may, you do NOT want to give your
    >> users the
    >> ability to bring ALL the records from a table into their browser. A
    >> web
    >> application running in a browser is miles from having the same
    >> capabilities
    >> as a client application installed on a user's machine.
    >>
    >> I suggest you pick up one of the Wrox books on database programming
    >> with ASP
    >> and eductate yourself.
    >>
    >> In the meantime, you may want to download and try out one of the
    >> generic
    >> database tools for database editing available on te web. One such
    >> tool is
    >> Eli Robillard's GenericDB which is available at [url]www.genericdb.com[/url].
    >> This will
    >> give you a starting point and allow you to see what needs to be done.
    >>
    >> Bob Barrows
    >
    >
    >
    > Hi Bob
    >
    > Thanks for your tips. Please note the tables I will be permitting to
    > edit have less than 2000 records so network impact is minimal secondly
    > I am not planning to let all users maintain these tables.
    This is irrelevant. The network traffic is not the only thing to think
    about. Browsers have limited ability to handle large amounts of data. Web
    applications do (should) not work by bringing all the records to the client.
    >
    > This is a what if analysis system users change the assumptions in some
    > these tables which maintain the assumptions they keep iteratively
    > changing the assumptions unless they meet the goal.
    >
    > Please highlight to me if there is a better way of maintaining this
    > kind of asssumptions in a what if analysis situation. We have a number
    > of users doing what if analysis on a SQL server database and some of
    > them are remote hence we want to provided some kind of a data grid to
    > enable them to maintain these assumptions.
    >
    I think the best way to do this would be to retrieve the records into a
    spreadsheet and allow the users to do what they will with the data. I would
    not recommend using an ASP application to give your users this
    functionality. Use the tools that are appropriate for the task.

    A Google search should find you information about using ASP to retrieve data
    from a database and put it into a spreadsheet which the user can download.
    As for saving the changes back to the database, you have several options,
    including:

    1. Give the user the ability to upload (there are third-party upload
    applications that can make this easy for you - do a search at [url]www.aspfaq.com[/url]
    for some examples) his spreadsheet to a folder on your webserver and use DTS
    to import it into the database. See [url]www.sqldts.com[/url] for pointers.

    There are other less efficient options, but I'm out of time. Maybe some
    other people can chime in here ...

    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] 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