Update refuses to work

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Update refuses to work

    I run the following code and nothing happens.

    mySQLUpdate = "UPDATE tblProd SET authorMemo = 'TEST'"
    set objCmdUpdate = Server.CreateObject("ADODB.Command")
    objCmdUpdate.ActiveConnection = MM_myConn_STRING
    objCmdUpdate.CommandText = mySQLUpdate
    objCmdUpdate.CommandType = 1
    objCmdUpdate.CommandTimeout = 0
    objCmdUpdate.Prepared = true
    objCmdUpdate.Execute()

    The page executes without a problem but the field 'authorMemo' never gets
    updated.

    Any Ideas ?

    TIA


    Poppy Guest

  2. Similar Questions and Discussions

    1. Shockwave refuses to work
      Here are my specs... Operating System: Windows Vista? Home Premium (6.0, Build 6000) (6000.vista_gdr.071023-1545) Language: English (Regional...
    2. How does update work
      I bind a Datagrid to a recordset obtained from a stored proc in SQL server. DataGrid displays the recordset. User updates some data on the grip,...
    3. why is the "Adobe Acrobat 6.0.1 Update" message there at the top? -- the update doesn't work
      why is the "Adobe Acrobat 6.0.1 Update" message there there at the top? -- the update doesn't work
    4. #25332 [Opn->Bgs]: Update from 4.3.2 to 4.3.3 won't work
      ID: 25332 Updated by: sniper@php.net Reported By: info at y2ksw dot it -Status: Open +Status: Bogus...
    5. #25332 [NEW]: Update from 4.3.2 to 4.3.3 won't work
      From: info at y2ksw dot it Operating system: Windows XP Pro/ Win 2000 server PHP version: 4.3.3 PHP Bug Type: Unknown/Other...
  3. #2

    Default Re: Update refuses to work

    Do you have an On Error Resume Next?

    And what happens if you just do:

    Set objADO = Server.CreateObject("ADODB.Connection")
    objADO.Open MM_myConn_STRING
    objADO.Execute mySQLUpdate
    objADO.Close : Set objADO = Nothing

    Ray at work

    "Poppy" <paul.diamond@NOSPAMthemedialounge.com> wrote in message
    news:OcnYER%23lDHA.2964@tk2msftngp13.phx.gbl...
    > I run the following code and nothing happens.
    >
    > mySQLUpdate = "UPDATE tblProd SET authorMemo = 'TEST'"
    > set objCmdUpdate = Server.CreateObject("ADODB.Command")
    > objCmdUpdate.ActiveConnection = MM_myConn_STRING
    > objCmdUpdate.CommandText = mySQLUpdate
    > objCmdUpdate.CommandType = 1
    > objCmdUpdate.CommandTimeout = 0
    > objCmdUpdate.Prepared = true
    > objCmdUpdate.Execute()
    >
    > The page executes without a problem but the field 'authorMemo' never gets
    > updated.
    >
    > Any Ideas ?
    >
    > TIA
    >
    >

    Ray at 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