binary eh? that's kinda interesting. Fixed length defined?see if this helps you at all:declare @binstr varbinary(100)--A=41 B=42 C=43 D=44 E=45 F=46 G=47 H=48 I=49 J=4A K=4B L=4C M=4D N=4E O=4F--P=50 Q=51 R=52 S=53 T=54 U=55 V=56 W=57 X=58 Y=59 Z=5A--0=30 1=31 2=32 3=33 4=34 5=35 6=36 7=37 8=38 9=39 --Test Stringset @binstr = 0x4649454C443156414C5545314649454C443256414C5545313939--Display full stringselect convert(char(26),@binstr)--substring and convert values from the input stringselect convert(char(6),substring(@binstr,1,6))AS First_Col, convert(char(6),substring(@binstr,7,6))AS First_Val, convert(char(6),substring(@binstr,13,6))AS Second_Col, convert(char(8),substring(@binstr,19,8))AS Second_Value
If you have a known, fixed format in the binary file, you could create a strucutre that contains that mapping, and use that structure to traverse through you input data - I am sure that the wiser heads here can give you a better approach, though ...*##* *##* *##* *##* Chaos, Disorder and Panic ... my work is done here!