How do I resolve the error "The type or namespace name 'SQLConnection' could not be found (are you missing a using directive or an assembly reference?)"?

How do I resolve the following errors in my code that follows:

I am using VS2010 and working on a C# Web application.

Error      1      The type or namespace name 'SQLConnection' could not be found (are you missing a using directive or an assembly reference?)      \\msad\root\na\ny\users\zimmermj\visual studio 2010\Projects\SMRWebForm\SMRWebForm\SMRWebForm1.aspx.cs      64      20      SMRWebForm
Error      8      The type or namespace name 'SQLCommand' could not be found (are you missing a using directive or an assembly reference?)      \\msad\root\na\ny\users\zimmermj\visual studio 2010\Projects\SMRWebForm\SMRWebForm\SMRWebForm1.aspx.cs      74      24      SMRWebForm

------------------------------------

using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;

namespace SMRWebForm
{
    public partial class SMRWebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {                        
            using (SQLConnection conn = new SQLConnection(connString))
            {
                conn.Open();
                StringBuilder sb = new StringBuilder();
                string[] sArray = new string[9];
                sArray[0] = banknum;
                sArray[1] = transDtYR;
                sArray[2] = transDtMnth;
                sb.AppendFormat( myInsert, sArray);
                string cmdText = sb.ToString();
                using (SQLCommand cmd = new SQLCommand(conn, cmdText))
                {
                   int rowsAffected = cmd.ExecuteNonQuery();
                }
            }
        }
    }
}
zimmer9Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Meir RivkinFull stack Software EngineerCommented:
change it to SqlConnection not SQLConnection
same goes to SqlCommand
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.