Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Help with CONVERT

Help with CONVERT

Scheduled Pinned Locked Moved Database
helpdatabasecryptographytutorialannouncement
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    svanwass
    wrote on last edited by
    #1

    When attempting to update a recordset, I get an error saying: Msg 257, Level 16, State 3, Line 1 Implicit conversion from data type varchar to binary is not allowed. Use the CONVERT function to run this query. I've Googled it but can't find a concrete answer how to use the convert function to do this. My statement is something like: UPDATE USERS SET PASSWORD ='0x98CA89CFB23D213D3A12C54B', HASH ='0x134523450' WHERE ID='1';

    S 1 Reply Last reply
    0
    • S svanwass

      When attempting to update a recordset, I get an error saying: Msg 257, Level 16, State 3, Line 1 Implicit conversion from data type varchar to binary is not allowed. Use the CONVERT function to run this query. I've Googled it but can't find a concrete answer how to use the convert function to do this. My statement is something like: UPDATE USERS SET PASSWORD ='0x98CA89CFB23D213D3A12C54B', HASH ='0x134523450' WHERE ID='1';

      S Offline
      S Offline
      SimulationofSai
      wrote on last edited by
      #2

      You don't need to enclose binary data within single quotes. UPDATE USERS SET PASSWORD =0x98CA89CFB23D213D3A12C54B, HASH =0x134523450 WHERE ID='1';

      S 1 Reply Last reply
      0
      • S SimulationofSai

        You don't need to enclose binary data within single quotes. UPDATE USERS SET PASSWORD =0x98CA89CFB23D213D3A12C54B, HASH =0x134523450 WHERE ID='1';

        S Offline
        S Offline
        svanwass
        wrote on last edited by
        #3

        Thanks!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups