Archives of the TeradataForum
Message Posted: Wed, 03 Jan 2007 @ 14:43:09 GMT
Subj: | | Connect to Teradata from VB.Net |
|
From: | | Anomy Anom |
<-- Anonymously Posted: Wednesday, January 03, 2007 09:39 -->
Hello,
Does anyone know the vb.net connection string used for connecting to a Teradata Database or indeed a reference where i could find out more.
Google seems to be sparse enough.
I've integrated with SqlServer and DB2 before and for anyone interested the connection strings are as below.
Thanks.? Dim frmMIS As New MIS? ? ? ? frmMIS.UserName.Text =
UNameLogXML? ? ? ? frmMIS.Password.Text = PasswordLogXML
frmMIS.Database.Text = DatabaseLogXML? ? ? ? frmMIS.Server.Text =
ServerLogXML? ? ? ? frmMIS.Provider.Text = ProviderLogXML
frmMIS.Protocol.Text = ProtocolLogXML? ? ? ? frmMIS.Port.Text =
PortLogXML
'cn = New SqlClient.SqlConnection("user id=" & UNameLogXML &
";password=" &
PasswordLogXML & ";database=" & DatabaseLogXML & ";server=" &
ServerLogXML)? ? ? ? DB2cn = New OleDb.OleDbConnection("Provider=" &
ProviderLogXML &
";Database=" & DatabaseLogXML & ";HOSTNAME=" & ServerLogXML &
";PROTOCOL="
&
ProtocolLogXML & ";PORT=" & PortLogXML & ";uid=" & UNameLogXML & ";pwd="
&
PasswordLogXML)
Regards
|