.NET Provider TdConnectionStringBuilder help
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


.NET Provider TdConnectionStringBuilder help Expand / Collapse
Author
Message
Posted 7/14/2006 9:30:56 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/17/2007 5:10:00 PM
Posts: 3, Visits: 1
I am having problems getting the TdConnectionStringBuilder in the .NET Data Provider to work.

Here is my code that does not work:

TdConnectionStringBuilder stringBuilder = new TdConnectionStringBuilder();

stringBuilder.AccountString = accountString;
stringBuilder.DataSource = connect.DataSource;
stringBuilder.Database = connect.Database;
stringBuilder.UserId = username;
stringBuilder.Password = password;

connect.ConnectionString = stringBuilder.ConnectionString;
connect.Open();


The reason that it does not work is because it loses the password. The reason I know this is because I can use this line and it will work:

connect.ConnectionString = stringBuilder.ConnectionString + ";Password=" + password;
connect.Open();

Has anyone had this problem using the .NET Data Provider? Could this be a bug or is it something that I am missing?
Post #4610
Posted 9/14/2006 12:28:29 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 11/20/2008 6:06:39 PM
Posts: 125, Visits: 271
Please set TdConnectionStringBuilder.PersistSecurityInfo property to true.
Release 1 required this property to be set to true before it would persist the password to the Connection String.

This requirement is removed in Release 2.


Shaw
Post #5149
Posted 9/25/2006 8:42:03 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 4/17/2007 5:10:00 PM
Posts: 3, Visits: 1
Thank you Shaw! That worked perfectly.
Post #5272
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 9:08am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 9 queries. Compression Disabled.