ODBC method in Microsoft.Practices.EnterpriseLibrary.Data-VBForums
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
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    96,578

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  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
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    96,578

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    96,578

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

    Maybe you should be reading this:

    https://www.microsoft.com/en-us/down....aspx?id=41145
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  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
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.