How to set up .net teradata connection in c#?

前端 未结 4 2449
天命终不由人
天命终不由人 2021-02-14 12:36

I am trying to connect to Teradata with c#. I am using the sample code from this website

using System;
using System.Collections.Generic;
using System.Text;
usin         


        
4条回答
  •  北荒
    北荒 (楼主)
    2021-02-14 13:16

    Try this

                    TdConnectionStringBuilder builder=new TdConnectionStringBuilder();
                    builder.Add("Data Source", "xxx");
                    builder.Add("User ID", "vvv");
                    builder.Add("Password", "bbb");
                    TdConnection cn = new TdConnection(builder.ConnectionString);
                    cn.Open();
    

提交回复
热议问题