Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Query Objects that are Update Queries? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    The following query isolates query objects

    Is there a way to tell which queries are Select, Update, Delete, Append, etc?

    Thanks, John

    <pre>SELECT MSysObjects.Name, MSysObjects.Type
    FROM MSysObjects
    WHERE (((MSysObjects.Type)=5))
    ORDER BY MSysObjects.Name;
    </pre>


  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Query Objects that are Update Queries? (a2k (9.0.6926) SP-3 Jet 4.0 SP

    Look at the Flags field:

    <table border=1><td align=center>Flags</td><td align=center>Meaning</td><td align=right>0</td><td>Select</td><td align=right>16</td><td>Crosstab</td><td align=right>32</td><td>Delete</td><td align=right>48</td><td>Update</td><td align=right>64</td><td>Append</td><td align=right>80</td><td>Make-table</td><td align=right>96</td><td>Data definition</td><td align=right>128</td><td>Union</td></table>
    For hidden queries, 8 is added to the above values.

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Query Objects that are Update Queries? (a2k (9.0.6926) SP-3 Jet 4.0 SP

    Thanks

Posting Permissions

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