Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 audit table - columns_updated...

Author  Topic 

hai
Yak Posting Veteran

84 Posts

Posted - 2008-10-22 : 10:25:50
hi all,

I'm trying to retry the value varbinary from an audit table that keep the value of columns_updated. How would I display or converted to a more human friendly writing.

thanks

darkdusky
Aged Yak Warrior

591 Posts

Posted - 2008-10-23 : 08:03:14
convert(varchar(30), @bVal)
e.g
declare @bVal varbinary(60),
@sVal varchar(30),
@sLoad varchar(30)

select @sLoad = 'This is a test.'
select @bVal = convert(varbinary(60),@sLoad)
select @sVal = convert(varchar(30), @bVal)
select @sVal, @bVal
Go to Top of Page
   

- Advertisement -