wish
04-02-02, 10:46
| Hi I am not sure if this posrt belongs here but here goes.... I am really stuck with a bit of perl, I am working with ms-sql server I can make a connection with the database and execute the sql and get the result the problem is that there is this field Called 'TimeStamp' it is simply an incremental binary value that SQL Server guarantees to be unique every time you use it. When I look at the table data thought ms query analyser it shows the 'TimeStamp' value in hex but the table property show that field as a binary when I get that field with perl and display it in the command prompt it lookers like when you open a exe file in notepad with all the weird chars. Is there any way in perl that I can convert that binary value into and integer, I have tried to use unpack but had not results. I tried to feed that value back in to ms-sql server I was using .... select cast ( $binVal as integer ) ..... but the problem there is that in MS query analyser the binary is displayed as hex and in perl $binVal is some kind of pure binary value this problem has been wrecking my head for a day and a half now I would really appreciate any help that you could give me |