Unable to adjust BUFFER using setMSSQL function

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

  1. #1

    Default Unable to adjust BUFFER using setMSSQL function

    Has anyone has success in adjusting the Long Text Buffer size using the
    setMSSQL function in the datasource component? It seems as though the only
    value which I have been able to programatically change using the setMSSQL
    function are the parameters that are of type string. The code below completes
    without an error, however the Long Text Buffer field (BUFFER) does not get
    updated from the current value of 64000 to the defined 128000. Using the code
    below, I can however modify the text fields in the component (i.e. change the
    description to 'TESTING 1-2-3').

    <cfset
    getDSN=createObject("component","cfide.administrat or.components.datasource")>
    <cfinvoke component="#getDSN#" method="getDatasource" returnvariable="wpDSN">
    <cfinvokeargument name="dsnname" value="LMR">
    </cfinvoke>

    <cfset myDSN = structNew()>
    <cfset myDSN.dsn = "#wpDSN.name#">
    <cfset myDSN.host = "#wpDSN.urlmap.host#">
    <cfset myDSN.database = "#wpDSN.urlmap.database#">
    <cfset myDSN.port = "#wpDSN.urlmap.port#">
    <cfset myDSN.driver = "#wpDSN.driver#">
    <cfset myDSN.class = "#wpDSN.class#">
    <cfset myDSN.username = "#wpDSN.username#">
    <cfset myDSN.password = "#wpDSN.password#">
    <cfset myDSN.epassword = "#wpDSN.password#">
    <cfset myDSN.description = "#wpDSN.description#">
    <cfset myDSN.args = "#wpDSN.urlmap.args#">
    <cfset myDSN.sendStringParametersAsUnicode =
    wpDSN.urlmap.sendStringParametersAsUnicode>
    <cfset myDSN.selectmethod = "#wpDSN.urlmap.selectmethod#">
    <cfset myDSN.timeout = val(wpDSN.timeout)>
    <cfset myDSN.interval = val(wpDSN.interval)>
    <cfset myDSN.login_timeout = val(wpDSN.login_timeout)>
    <cfset myDSN.buffer = 128000>
    <cfset myDSN.blob_buffer = 64000>
    <cfset myDSN.pooling = wpDSN.pooling>
    <cfset myDSN.disable = wpDSN.disable>
    <cfset myDSN.enable_clob = True>
    <cfset myDSN.enable_blob = False>
    <cfset myDSN.select = wpDSN.select>
    <cfset myDSN.create = wpDSN.create>
    <cfset myDSN.grant = wpDSN.grant>
    <cfset myDSN.insert = wpDSN.insert>
    <cfset myDSN.drop = wpDSN.drop>
    <cfset myDSN.revoke = wpDSN.revoke>
    <cfset myDSN.update = wpDSN.update>
    <cfset myDSN.alter = wpDSN.alter>
    <cfset myDSN.storedproc = wpDSN.storedproc>
    <cfset myDSN.delete = wpDSN.delete>

    <cfinvoke component="#getDSN#" method="setMSSQL" returnvariable="wpSetDSN"
    argumentcollection="#myDSN#">

    johnhyfusion Guest

  2. Similar Questions and Discussions

    1. Unable to pass SqlParameter object to a web service function
      I am trying to create a webservice for executing a stored procedure. This webservice is just a wrapper class for Microsoft.ApplicationBlocks.Data...
    2. #25217 [NEW]: calling ob_gzhandler after modified buffer in ob handler, return origin buffer
      From: Xuefer at 21cn dot com Operating system: win PHP version: 4.3.3RC4 PHP Bug Type: Output Control Bug description: ...
    3. How can I adjust....
      How can I adjust the blur and the intensity??
    4. function has correct values but seems unable to return them
      Here I have two functions, the first returning a value to the second. When I put print_r() on the last line of the first function, I can see that...
  3. #2

    Default Re: Unable to adjust BUFFER using setMSSQL function

    Found it! There is an additional parameter (AdvancedMode, boolean) which needs
    to be passed to the DataSource component in order to modify any of the Advanced
    Settings. Unfortunately this was not listed in the component browser
    documentation.

    johnhyfusion 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