Results 1 to 3 of 3

Thread: ODBC .Net Data Provider question

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2002
    Posts
    38

    ODBC .Net Data Provider question

    Hi
    I've installed ODBC .Net Data Provider and MDAC 2.7 on my web server, but why does it always give error when I use the System.Data.ODBC namespace?

    The import part of my code is as follows:
    <%@ Import Namespace="System.Data" %>
    <%@ Import Namespace="System.Data.Odbc" %>
    <%@ Assembly Name = "System.Data.Odbc" %>

    The error is:
    Parser Error Message: File or assembly name System.Data.Odbc, or one of its dependencies, was not found.

    The server:
    Windows2000, SQL server 7

    I've tried changing System.Data.Odbc to Microsoft.Data.Odbc (since that's what I saw on some sites), but the result is the same. Can someone tell me what I've been missing out?
    Thanks!

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Why are you using the Assembly marker? Isnt System.Data.ODBC already part of the framework, therefore using that is pointless. You only use that for third party dll's you have in your bin directory.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2002
    Posts
    38
    As far as I know, the Microsoft.Data.ODBC is currently still an add-on component for the .Net framework. It will be included in the next release of .Net framework and the name will then be changed to System.Data.ODBC.

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