puranik_p
asked on
binary to varchar conversion
SELECT convert(varbinary,CONVERT( BINARY,120 703))
RETURNS,
0x000000000000000000000000 0000000000 0000000000 0000000000 01D77F
AND I WANT LAST 5 CHARS OF THE RESULT. THAT IS..1D77F
when I do..
SELECT right(convert(varbinary,CO NVERT(BINA RY,120703) ),5)
It returns me an empty string.
RETURNS,
0x000000000000000000000000
AND I WANT LAST 5 CHARS OF THE RESULT. THAT IS..1D77F
when I do..
SELECT right(convert(varbinary,CO
It returns me an empty string.
the statement
SELECT right(dbo.fn_varbintohexst r(Convert( varbinary, 120703)),5)
returns 1d77f (on Sql server 2000)
- regards
mikkel
SELECT right(dbo.fn_varbintohexst
returns 1d77f (on Sql server 2000)
- regards
mikkel
ASKER
Hilaire,
your statement gives
0x0001D77F
mikkelp,
your statement gives
Invalid object name 'dbo.fn_varbintohexstr'.
Its seems to be a user defined function which is not there in my database.
and yes. I'm using SQL Server 2000
your statement gives
0x0001D77F
mikkelp,
your statement gives
Invalid object name 'dbo.fn_varbintohexstr'.
Its seems to be a user defined function which is not there in my database.
and yes. I'm using SQL Server 2000
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it worked !!
thanks a lot mikkelp.
There seems to be a lot with these functions in master database that I don't know.
Thanks again.
thanks a lot mikkelp.
There seems to be a lot with these functions in master database that I don't know.
Thanks again.
SELECT convert(varbinary(5),12070