Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Re: CFProcParam - MX7

    Well, you don't have to abandon using them if you don't mind providing the
    unused parameters with null="no". I've been doing this for years (since CF
    4.5), as Oracle never did allow for me to do this.

    Phil

    paross1 Guest

  2. Similar Questions and Discussions

    1. cfprocparam and ORACLE
      I need help with an error I am getting; I am calling an Oracle DB procedure in a package(people) PROCEDURE version_info (version OUT VARCHAR2)...
    2. Problem with cfsqltype attribute of cfprocparam
      I am using Microsoft SQL server 2000. The cfsqltype attribute of cfprocparam supports the following as shown below (extract from in its...
    3. GUID and CFProcParam
      I have a new client who is using GUID's as the primary key of their Customer table rather than the integer that most of my other clients use. When...
    4. Max number of decimal places in cfprocparam?
      It appears that the maximum number of decimal places that cfprocparam will return is 12, using this syntax: <cfprocparam type="Out"...
    5. cfprocparam sending "???????" to SQL Server
      I have a SQL Server stored procedure that expects an nvarchar parameter. The cfprocparam is sending Russian characters, but the stored proc seems...
  3. #2

    Default Re: CFProcParam - MX7

    If this was simply an internal application using a single database, this might
    not be an issue. The problem is that our application supports multiple
    customers and each customer has their own database; each of these databases may
    be at a different schema version and as we add and remove columns over time, we
    try to arrange the columns in a logical (business). Requiring all databases be
    at the same schema version is not possible in our environment (we have
    literally 1000's of databases and our SLA does not allow downtime while we
    synchronize versions) and having a single application support multiple database
    schema's using positional parameters would be a nightmare.

    With this limitation, I'm not sure the advantages in using CFStoredProc as
    opposed to CFQuery?

    <cfquery datasource="#APPLICATION.DSN#" dbtype="ODBC">
    exec ContactInsProc
    @FirstName='#FORM.ContactFirstName#',
    @PostalCode='#FORM.PostalCode#'
    </cfquery>


    Steve Sommers Guest

  4. #3

    Default Re: CFProcParam - MX7

    The only advantage that comes to mind for using CFSTOREDPROC over CFQUERY would
    be if you intended to return values or result sets from your stored procedure.
    However, if you are just calling a stored proc to perform a function without
    returning anything, then you are probably OK using CFQUERY.

    Phil

    paross1 Guest

  5. #4

    Default Re: CFProcParam - MX7

    I assume you are talking about a speed advantage? I current pass values back as
    a result set:

    <cfquery name="qContact" datasource="#APPLICATION.DSN#" dbtype="ODBC">
    exec ContactInsProc
    @FirstName='#FORM.ContactFirstName#',
    @PostalCode='#FORM.PostalCode#'
    select @@identity as ContactID
    </cfquery>



    Steve Sommers Guest

  6. #5

    Default Re: CFProcParam - MX7

    Sorry, I had my Oracle hat on so my comments about parameter passing and result
    sets really don?t apply in this case. If the execution time is comparable
    between the two methods for your particular procedures, then use CFQUERY by all
    means.

    Phil

    paross1 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