A Wake County District Court judge on Wednesday also ordered Michael Owen Eason, 39, to undergo substance abuse treatment and ordered him to pay hundreds of dollars in fines in connection with the July 2009 charge.
He is also not allowed to drink alcohol for 180 days and is subject to random testing during that time.
Eason's license had already been revoked following an August 2008 arrest and subsequent conviction.
He has also been charged with two other DWIs – one last April and the other in December. Eason is expected to be back in court Friday and again next Tuesday on those charges.
Wake County District Attorney Colon Willoughby has said the law should be changed so that someone considered a danger could automatically be detained on pending cases.