Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

teradata and password expired!

Status
Not open for further replies.

2009luca

Programmer
Jul 27, 2013
222
0
16
IT

...
UserName = "user1"
userpwd = "passw1"

Set CONN = New ADODB.Connection
CONN.CommandTimeout = 0
CONN.ConnectionString = "Data Source=Teradata Produzione;Database=DBH;UID=" & UserName & ";PWD=" & userpwd
CONN.Open
...

I use this code to connect a Tredata database.

Prob! when the password expire in the vb project appear a windows popup to tell me to change the expired password...!

Is possible via code when the pasword expire automaticlly use a new password and store for next use?

I have gogling and in a post i see to set int string connection a new PWD similar:

CONN.ConnectionString = "Data Source=Teradata Produzione;Database=DBH;UID=" & UserName & ";PWD=" & userpwd;PWD1=" & userpwd1
And when the old pasword expire the code use the new userpwd1

is this correct?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top