Ambien can cause sleepwalking and the type of mania and hypomania that are associated with bipolar, or manic-depressive, disorder. Neither of these drugs is intended for long-term use on a daily basis. Xanax shouldn't be used for more than 30 days at a time, and Ambien shouldn't be used for more than 10 days at a time.These drugs are especially dangerous when taken at the same time.Both Xanax and Ambien slow down the central nervous system.anax shouldn't be used for more than 30 days at a time, and Ambien shouldn't be used for more than 10 days at a time. These drugs are especially dangerous when taken at the same time. Both Xanax and Ambien slow down the central nervous system.