Results 1 to 3 of 3

Thread: Deleting rows

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Location
    Phoenix, AZ
    Posts
    22

    Deleting rows

    When you bring in SQL records onto an .aspx page, is it possible to delete a row off the page (using VB) without deleting the record itself from the SQL table?
    "Ignorance and prejudice and fear walk hand in hand" - 'Witch Hunt', by Rush

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    No, but you can do a select statement like this to avoid displaying a particular record:

    select * from myTable where record_id != 10;

    Or, to avoid displaying multiple records:

    select * from myTable where record_id not in (1, 2, 3, 8, 9);

  3. #3
    Lively Member
    Join Date
    Aug 2002
    Location
    outerspace
    Posts
    126
    Actaully you should be able if you delete it from the dataset without ever updating the dataset back to the server. I do believe.
    "All those who wonder are not lost" -j.r.r tolkien

Posting Permissions

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



Click Here to Expand Forum to Full Width