Results 1 to 6 of 6

Thread: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    285

    ODBC method in Microsoft.Practices.EnterpriseLibrary.Data

    Hello,

    I have a requirement of odbc connection method in Microsoft.Practices.EnterpriseLibrary.Data assembly(version 5). Whether it is available in Microsoft.Practices.EnterpriseLibrary ?

    Or it there any suitable alternatives for ODBC in Microsoft.Practices.EnterpriseLibrary ?

    Please help me.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data

    Your question is a bit vague. Are you saying that you have an existing DSN that you need the Enterprise Library to connect to? If not, please try to provide a FULL and CLEAR description of the problem.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    285

    Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data

    Quote Originally Posted by jmcilhinney View Post
    Are you saying that you have an existing DSN that you need the Enterprise Library to connect to?
    Yes I want to connect Microsoft Access using Enterprise Library. For that I need ODBC method.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data

    Then you would create a Database object, passing the connection string and an OdbcFactory to the constructor.

    https://msdn.microsoft.com/en-us/lib...pandp.60).aspx

    I have to wonder why you're still using the Enterprise Library for data access though. It's rather out of date now.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data

    Maybe you should be reading this:

    https://www.microsoft.com/en-us/down....aspx?id=41145

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    May 2013
    Posts
    285

    Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data

    ODBC can be achieved by "GenericDatabase" Class of Microsoft.Practices.EnterpriseLibrary.Data

    Thank you all for your replies.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width