Connect to computer w/o charging?

This may be a basic Q (or I may be missing something obvious), but is there a way to connect the phone to the computer w/o having it charge?