2

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

VMAtm
  • 27,943
  • 17
  • 79
  • 125
StevieB
  • 6,263
  • 38
  • 108
  • 193

2 Answers2

1

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.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
0

Both of these enumeration (ParameterDirection and SqlDbType)are defined in System.Data.dll
This library is not referenced by default in some types of projects.
Did you Add reference for it?
If yes, then provide some code, please.

VMAtm
  • 27,943
  • 17
  • 79
  • 125