ASP Update statement to a MS SQL 2000 DB clears fields outside of the statement


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: ASP Update statement to a MS SQL 2000 DB clears fields outside of the statement

  1. #1
    Join Date
    Jun 2007
    Posts
    2

    ASP Update statement to a MS SQL 2000 DB clears fields outside of the statement

    I have an ASP app that allows teachers to enter reportcard grades for students. The forms have roughly 300 fields but only a third are ever active for the curren marking period. So each update state ent only has a little over 100 felds beig upated. Randomly data from fields not in the current period are bing cleared as the teachers are using the app.

    Is there a reason why SQL server might clear fields not even included in the UPDATE statement?

    Thanks!

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Welcome to DexX.

    No. SQL Server would not randomly clear fields even if they were in the UPDATE statement. It sounds like something unexpected is happening in your code. What is your update statement?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Jun 2007
    Posts
    2
    Update statement is toolong to post and it is created dynamically as the form is generated. Based on what period it is it geerates the form and updte statement. The only thing I could think of was if the update statement didn't get completely processed for some reason or if iis failed to process the database execute statement properly.

Similar Threads

  1. SQL 7.0 views vs SQL 2000 views
    By Mustafa in forum Database
    Replies: 7
    Last Post: 08-15-2002, 07:48 AM
  2. Replies: 1
    Last Post: 08-13-2002, 02:58 PM
  3. Declare a variable in ASP page for SQL statement
    By Alejandra in forum ASP.NET
    Replies: 2
    Last Post: 04-04-2002, 07:10 AM
  4. Re: Query Compare for DaveSatz
    By Ronald in forum Database
    Replies: 1
    Last Post: 11-27-2001, 10:28 AM
  5. How to lock a row when updating data with ASP and SQL
    By C. Liacopoulos in forum authorevents.mitchell
    Replies: 0
    Last Post: 10-17-2000, 02:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center