Add Connection


  • When adding a Database as a Data Source for a DataGridView for example, In the Add Connection Dialog Window, there are two options:

    Select or enter a database Name and Attach a database file.

    What exactly is the difference between them?

    Thursday, April 20, 2017 11:52 PM


  • Hi friend,

    Database name means you will choose a database:

    Microsoft SQL Server



    and database file will be like:

    .db files which you could created with VS(SSDT installed & Database like above)

    Please feel free to let me know if I misunderstood.

    Best regards,



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Friday, April 21, 2017 5:24 AM