|
-
Jun 19th, 2016, 11:44 PM
#1
Thread Starter
Hyperactive Member
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.
-
Jun 19th, 2016, 11:58 PM
#2
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.
-
Jun 20th, 2016, 02:58 AM
#3
Thread Starter
Hyperactive Member
Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data
 Originally Posted by jmcilhinney
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.
-
Jun 20th, 2016, 06:51 AM
#4
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.
-
Jun 20th, 2016, 06:54 AM
#5
Re: ODBC method in Microsoft.Practices.EnterpriseLibrary.Data
-
Jun 22nd, 2016, 06:26 AM
#6
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|