Click here to Skip to main content
15,888,064 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi I am developing a windows phone application in visual studio express for windows phone. My problem is that when I am using SqlCommand an SqlConncetion I get a reference fault:
type or namespace name 'SqlCommand' could not be found (are you missing a using directive or an assmbly refrence)

When I try to add a using system.data.sql; it will not recognice this command or others related to this. How do I go about fixing this issue ?

private void button1_Click(object sender, RoutedEventArgs e)
{
   SqlCommand test = new SqlCommand();
}
Posted
Updated 29-Oct-12 9:36am
v2

1 solution

Add reference to System.Data.dll assembly to your project to use them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900