Implicit conversion from data type varchar to varbinary is not allowed.

Results 1 to 3 of 3
  1. #1
    Account Upgraded | Title Enabled! samsunggon is offline
    MemberRank
    Mar 2010 Join Date
    Lorencia BarLocation
    517Posts

    Implicit conversion from data type varchar to varbinary is not allowed.

    can anyone help me to that error?
    i just try to clear all items in vault using this sql script here
    https://forum.ragezone.com/f197/verr...online-344193/
    but give me error "Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query."

    or any tutorials to clear all items in vault?
    im using zteam s6ep3 files
    sql server 2008r2

    Thanks


  2. #2
    Member cryy is offline
    MemberRank
    Jan 2011 Join Date
    HomeLocation
    80Posts

    Re: Implicit conversion from data type varchar to varbinary is not allowed.

    PHP Code:
    UPDATE warehouse SET Items CAST(REPLICATE(char(0xff), 3840) as varbinary(3840)) WHERE AccountId 'your account' 
    But first you should design your warehouse table and check length of Items column and change 3840 accordingly

  3. #3
    (づ。◕‿‿◕。) Natzugen is offline
    MemberRank
    Jun 2014 Join Date
    ElbelandLocation
    1,858Posts

    Re: Implicit conversion from data type varchar to varbinary is not allowed.

    delete the warehouse column and create it again



Advertisement