Connecting a Nintendo DS to a computer depends on exactly what you're trying to do, whether that's transferring files, using it as a controller, or setting up a shared connection.
Since the DS doesn't connect to a PC as directly as many devices, your best move is to look up a guide specific to your goal. A quick search or a visit to a tech help site will point you to the right method and any hardware or software you might need.