Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Database connection in .NET

Database connection in .NET

Scheduled Pinned Locked Moved C / C++ / MFC
databasequestioncsharpsql-serverdotnet
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jordan C Atlas
    wrote on last edited by
    #1

    Hello, Is there a way to make a connection to an access database using the .NET framework? So I'm looking for functionality like what is in System.Data.SqlClient, but I'd like to connect to an access database. Also, when you pass a "connection string" to a SqlConnection object, you need to include a database name.. Does that name refer to an ODBC connection or just to the name of the database in SQL server? Thank you, -Jordan

    E 1 Reply Last reply
    0
    • J Jordan C Atlas

      Hello, Is there a way to make a connection to an access database using the .NET framework? So I'm looking for functionality like what is in System.Data.SqlClient, but I'd like to connect to an access database. Also, when you pass a "connection string" to a SqlConnection object, you need to include a database name.. Does that name refer to an ODBC connection or just to the name of the database in SQL server? Thank you, -Jordan

      E Offline
      E Offline
      Ed K
      wrote on last edited by
      #2

      Check out this article.[^] ed ~"Watch your thoughts; they become your words. Watch your words they become your actions. Watch your actions; they become your habits. Watch your habits; they become your character. Watch your character; it becomes your destiny." -Frank Outlaw.

      J 1 Reply Last reply
      0
      • E Ed K

        Check out this article.[^] ed ~"Watch your thoughts; they become your words. Watch your words they become your actions. Watch your actions; they become your habits. Watch your habits; they become your character. Watch your character; it becomes your destiny." -Frank Outlaw.

        J Offline
        J Offline
        Jordan C Atlas
        wrote on last edited by
        #3

        Thanks Ed. It looks like I need to use an OleDbConnection. --Jordan

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups