my 2 gb micro card showing 45 mb after formating

My best guess is that you have several partitions on your micro SD card. You will have to delete those partitions and reformat the card for it to show up as 2 gb.