List all query names

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default List all query names

    I'm on a server that does not allow me to look at the normal debuging information. Does anyone know how to loop over all the queries and dump the results?
    stewartconsulting Guest

  2. Similar Questions and Discussions

    1. Get list of all Field Names in ORACLE DB
      I'm wondering if there is a way I can list all of the field names in an Oracle table easily? Any ideas?
    2. Contribute CS3 Recipient (Names) List
      When sending a Contribute (CS3) draft to other users, how does the selection list of users get populated? We have created Contribute users...
    3. Convert a query to a list, or find an item in a query
      Hi All, I am using CFPOP to retrieve mail from a server, then delete each message after I retrieve it. What I want to do is to check that I don;t...
    4. List Hash 'Field' Names
      I am trying to write more automated code - either I am a lazy typist or am just trying to get more with it! I have a hash I define; I have a form...
    5. List all and field names database contents
      I have been provided with a DSN, user name and password for one of my clients sites. I'm not an ASP developer and need to view all the contents...
  3. #2

    Default Re: List all query names

    Ver 7 has a new attribute to cfquery called result. And that has a variable
    called sql. So if you use
    <cfquery name="" datasource="" result="q1">

    <cfoutput>#q1.sql#</cfoutput>

    Older versions, why can't you just put the query inside cfoutput instead of
    cfquery and that will display all your queries.



    CFDEBUG Guest

  4. #3

    Default Re: List all query names

    Hi Randy

    You could copy the default debugging output page code and make your own debug
    page to include on your pages.
    C:\CFusionMX\wwwroot\WEB-INF\debug\classic.cfm

    I have done this for all the scope variables, haven't tried it for the Queries
    but can't see why it shouldn't work.

    HTH

    Zoe

    zoeski80 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