When posting questions on this forum, and any other for that matter, it is best if you try to give as much detail as possible. Connecting to a database is a very generic question as there are many types of database. However to try to answer your question you will need the appropriate connection string, and the appropriate adapter for your provider/database. i.e
Access would need a...
OledbDataAdapter