Something like this should work:
SELECT PhoneNum
, CHARINDEX('-',PhoneNum,1) AS ci
, LEFT(PhoneNum,CHARINDEX('-',PhoneNum,1)-1) AS code
, RIGHT(PhoneNum,LEN(PhoneNum)-CHARINDEX('-',PhoneNum,1))
FROM
(SELECT '123-12323' As PhoneNum
UNION ALL
SELECT '1234-1222') a;