Search code examples
asp.netsqlvisual-studiovisual-studio-2008sqlparameter

ASP.NET What reference am I missing for Parameter Direction and SQLDBType


Hey just wondering what references I need to add to my VS2008 Project to get the following working

Name ParameterDirection is not declared.
Name SqlDbType is not declared

Thanks


Solution

  • Try ensuring that your project has a reference to the System.Data assembly

    enter image description here

    and that your code file has:

    using System.Data;
    

    That should give you access to both those enumeration types.