EMDEP interview question

Q: How do you connect to database server in visual studio? Explain in detail.