Error: The name 'SqlDbType' does not exist in the current context  
Author Message
jschroeder





PostPosted: Visual C# General, Error: The name 'SqlDbType' does not exist in the current context Top

I am trying to add a parameter to my SQL command. When trying to build this code I get the error: "The name 'SqlDbType' does not exist in the current context "

...

using System.Data.SqlClient;

...

SqlCommand command = connection.CreateCommand();

command.Parameters.Add(

...






Visual C#7  
 
 
boban.s





PostPosted: Visual C# General, Error: The name 'SqlDbType' does not exist in the current context Top

using System.Data;

 
 
jschroeder





PostPosted: Visual C# General, Error: The name 'SqlDbType' does not exist in the current context Top

Thanks.