assembly declaration for C# for Teradata

Hello Experts,

I have installed the .net data provider and odbc driver for windows. I have created a reference to the .net data provider in my application. I have created a getTeradataData() but I am getting an assembly is missing for my TdConnection and other builders. I believe I a name space declared at the top of my code behind for the .net data provider. Can you please take a look at my code below and let me know what assembly I am missing?

Thank,
Jeff
using System;
using System.Configuration;
using System.Data;
using System.Data.Common;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        GridView1.DataSource = getTeradataData();
        GridView1.DataBind();
    }
    public static DataSet getTeradataData()
    {

        TdConnection cn = new TdConnection();
        TdConnectionStringBuilder conStrBuilder = new TdConnectionStringBuilder();

        conStrBuilder.DataSource = "dbconnectionnamehere";
        conStrBuilder.Database = "dbnamehere";

        conStrBuilder.UserId = "usernamehere"; conStrBuilder.Password = "passwordhere";
        cn.ConnectionString = conStrBuilder.ConnectionString;

        cn.Open();

        TdCommand cmd = cn.CreateCommand();
        cmd.CommandText = "select * from ntl_prd_allvm.user_id_v where emp_id = '310332' and user_status_ind = 'a'";

        DataSet ds = new DataSet();


        TdDataAdapter da = new TdDataAdapter(cmd);
        da.Fill(ds);

        return (ds);
    }
}

Open in new window

woodjeAsked:
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.

MlandaTCommented:
i think you need a:

using Teradata.Client.Provider;

Open in new window

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
MlandaTCommented:
you should add it just before the line:

public partial class _Default : System.Web.UI.Page 

Open in new window

0
woodjeAuthor Commented:
That worked perfect Thanks.
0
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
Enterprise Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.