语法上没错(作为一个表达式)要看结果用select convert(binary(8),'35qrq')

解决方案 »

  1.   

    没问题啊.Select convert(binary(8),'35qrq')--反转~
    Declare @b Binary(8)
    Set @b = 0x3335717271000000
    Select Convert(Varchar(10),@b)
      

  2.   

    insert into news values('','','','','','',convert(binary(8),''))
    最后一类型是timestamp
    这跳语句报错无提示:
    服务器: 消息 273,级别 16,状态 1,行 1
    不能在 timestamp 列中插入非空值。请使用带有列的列表,或 timestamp 列默认值为 NULL 的 INSERT 语句。
      

  3.   

    insert into news values('','','','','','',convert(binary(8),''))
    改成
    insert into news values('','','','','','',convert(binary(8),NULL))
    或者改成:
    insert into news(列名列表,不包括TimeStamp列) 
    values('','','','','','',convert(binary(8)))