The length of time a tick must be attached to a dog to transmit Lyme disease varies. Generally, it takes at least 24 to 48 hours of attachment for the bacteria to be transmitted. Regularly checking your dog for ticks and promptly removing them can help reduce the risk of disease transmission.