 " Dangerously in Love " was written and produced by Beyoncé and Errol McCalla , Jr . It was recorded for the Destiny 's Child album , Survivor ( 2001 ) . Beyoncé re @-@ recorded the song at the SugarHill Studios in Houston , Texas in 2002 for her debut solo album , Dangerously in Love . Her version , which was titled " Dangerously in Love 2 " , features a modified arrangement . It was set as a remix track , but later became the title track to her debut studio album . 
