locked
"Imports" function does not work RRS feed

  • Question

  • I am writing code in VB.NET.  When I type the following, my script doesn't recognize the function "Imports":

    Imports System.Data

    What library do I need for this to work?

     

     

    Thursday, November 10, 2011 3:43 AM

Answers

  • Hello,

    It is a question related to VB not SQL Server Data Access, same problem with your other thread :

    http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/fa155420-11ad-4f02-9321-71452ad6264f

    I think that i have given the answer in my reply in this later thread.

    Have a nice day

    PS: i don't understand your question as ( in theory ) VB Express adds automaticaly a refrence to the corresponding dll or you have misplaced your statement in your code ( it should be at the top of your code )

     


    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
    • Edited by Papy Normand Thursday, November 10, 2011 10:07 AM added post-scriptum
    • Proposed as answer by Olaf HelperMVP Thursday, November 10, 2011 5:59 PM
    • Marked as answer by Stephanie Lv Wednesday, November 23, 2011 8:56 AM
    Thursday, November 10, 2011 10:04 AM

All replies

  • Hello,

    It is a question related to VB not SQL Server Data Access, same problem with your other thread :

    http://social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/fa155420-11ad-4f02-9321-71452ad6264f

    I think that i have given the answer in my reply in this later thread.

    Have a nice day

    PS: i don't understand your question as ( in theory ) VB Express adds automaticaly a refrence to the corresponding dll or you have misplaced your statement in your code ( it should be at the top of your code )

     


    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.
    • Edited by Papy Normand Thursday, November 10, 2011 10:07 AM added post-scriptum
    • Proposed as answer by Olaf HelperMVP Thursday, November 10, 2011 5:59 PM
    • Marked as answer by Stephanie Lv Wednesday, November 23, 2011 8:56 AM
    Thursday, November 10, 2011 10:04 AM
  • Adding these .NET References made it work.

    Thanks a bunch!

    Friday, November 11, 2011 12:39 AM