Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2013
    Posts
    46

    Question Access DELETE DISTINCTROW query

    Hi, I need help converting access DELETE DISTINCTROW query to SQL stored procedure. I am new to SQL and have no access experience.


    DELETE DISTINCTROW TABLE1.*
    FROM TABLE1;

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    14,971
    Since that query makes no sense in Access 2000 or later, you must be using Access 2.0. In Access 2.0, that statement would delete every row in TABLE1. The equivalent statement in SQL 4.21a or later for your Access 2.0 example would be:
    Code:
    TRUNCATE TABLE TABLE1;
    Note that you seem to be using a very, VERY old version of Access (possibly even before Microsoft bought the product). Be very careful to state what version you're using, since many things within Access have changed since then.

    -PatP
    In theory, theory and practice are identical. In practice, theory and practice are unrelated.

  3. #3
    Join Date
    Feb 2013
    Posts
    46
    Thank you for your help Pat! You are correct about the access version the query comes from access 97.

Posting Permissions

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