Sybase Update VARBINARY TEXT

Hi,

I need your help please.

I'm using Sybase database to complete this task.
I have update BSTX_TEXT field that is VARBINARY TEXT
to say "NON GROUP VBIP"

The field currently encrypted and stored as VARBINARY TEXT
what I want is to change the text field name in it.

Is there a way to read this VARBINARY ?

UPDATE dbo.CMC_BSTX_SUM_TEXT SET
 convert(char(70), BSTX_TEXT) as BSTX_TEXT = 'VBID PRESTIGE OPTION'
WHERE PDBC_PFX = 'E595'

Thanks,
Lulu
lulu50Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lulu50Author Commented:
can I do this

UPDATE dbo.CMC_BSTX_SUM_TEXT SET convert(char(70), BSTX_TEXT) = VBID PRESTIGE OPTION LEVEL'
FROM dbo.CMC_BSTX_SUM_TEXT
WHERE PDBC_PFX = 'E595'
AND BSBS_TYPE = '0001'
0
Pawan KumarDatabase ExpertCommented:
can you explain wht you want to achieve?
0
Pawan KumarDatabase ExpertCommented:
Please try this-

UPDATE dbo.CMC_BSTX_SUM_TEXT 
SET convert(char(70), BSTX_TEXT) = VBID PRESTIGE OPTION LEVEL'
WHERE PDBC_PFX = 'E595'
AND BSBS_TYPE = '0001'

Open in new window

0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

lulu50Author Commented:
I have to update the text in that field
0
Pawan KumarDatabase ExpertCommented:
Please try this -

UPDATE dbo.CMC_BSTX_SUM_TEXT 
SET convert(char(70), BSTX_TEXT) = 'VBID PRESTIGE OPTION LEVEL'
WHERE PDBC_PFX = 'E595'
AND BSBS_TYPE = '0001'

Open in new window

0
lulu50Author Commented:
I'm getting this error

Error (102) Incorrect syntax near '='.

when I run this

UPDATE dbo.CMC_BSTX_SUM_TEXT
SET convert(char(70), BSTX_TEXT) = 'BCNA NON GROUP VBID PRESTIGE OPTION LEVEL 1 (HIGH) 2018'
WHERE PDBC_PFX = 'E595'
AND BSBS_TYPE = '0001'
0
Pawan KumarDatabase ExpertCommented:
pls Try this-

UPDATE dbo.CMC_BSTX_SUM_TEXT 
SET BSTX_TEXT = CONVERT( varbinary(max) , 'BCNA NON GROUP VBID PRESTIGE OPTION LEVEL 1 (HIGH) 2018' ) 
WHERE PDBC_PFX = 'E595'
AND BSBS_TYPE = '0001'

Open in new window

0
lulu50Author Commented:
Error (156) Incorrect syntax near the keyword 'max'.
0
Pawan KumarDatabase ExpertCommented:
try with giving size..
UPDATE dbo.CMC_BSTX_SUM_TEXT 
SET BSTX_TEXT = CONVERT( varbinary(1000) , 'BCNA NON GROUP VBID PRESTIGE OPTION LEVEL 1 (HIGH) 2018' ) 
WHERE PDBC_PFX = 'E595'
AND BSBS_TYPE = '0001'

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lulu50Author Commented:
oh Pawan!!!!!

it worked!!!!

Thank you so much !!!!

Thank you and Thank you one more Thank you
0
lulu50Author Commented:
Thank you
0
Pawan KumarDatabase ExpertCommented:
welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SQL

From novice to tech pro — start learning today.