CrazyEngineers
  • Interview Question: How did you connect to the database?

    Maelstrom

    Member

    Updated: Oct 26, 2024
    Views: 938
    First up, background info: I did my BE project in .NET (Visual Basic), it was a standard two-tier application.

    So, the interviewer asks me...
    HIM: Which database did you use?
    ME: SQL2005
    HIM: How did you connect to the database?
    ME: ??!???
    .
    .
    .
    Um... we used the SqlConnection object...

    HIM: ???!!???




    Help me out guys, I'm feeling really foolish here. What was I supposed to say?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • NDL

    MemberFeb 25, 2010

    I think he wanted to ask you what interest you to use this database or why are using this database and from when.
    Are you sure? This action cannot be undone.
    Cancel
  • silverscorpion

    MemberFeb 26, 2010

    I think he was asking how you made a connection to the sql server that;s running on your machine.

    I'm not familiar with .net. But I used SQL with Java using JDBC. In that, we used to connect to the database from Java via something called the JDBC driver for SQL.

    Maybe, there's something like that in .net too.. And that would probably be what he asked..
    Are you sure? This action cannot be undone.
    Cancel
  • Ashraf HZ

    MemberFeb 27, 2010

    "How did you connect to the database?"

    It could be a philosophical question. You never know interviewers these days..
    Are you sure? This action cannot be undone.
    Cancel
  • optimystix

    MemberFeb 27, 2010

    well it could be like ash said. but i believe the guy just expected a proper answer from you. whether ur answer's a philosophical or not, if you answered well, it would mean that you have done your job well and he would have been satisfied.

    your answer was a bit loose one. there are ways to connect but i think your connection must have used adodc(object) connection using MS OLEDB provider for SQL server.
    am i right ??

    or did u make use of sql only to make these connections ? its possible both the ways. i know only 2 ways 'cos i have used them. dunno if there are more ways to do. must be though for different servers and objects
    Are you sure? This action cannot be undone.
    Cancel
  • MaRo

    MemberFeb 28, 2010

    I don't think you've never connected to a database!
    Are you sure? This action cannot be undone.
    Cancel
  • Maelstrom

    MemberMar 1, 2010

    I checked a textbook, and here's a tentative answer:

    "I used the .NET Data Provider for Sql Server"

    Howzzat?
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register