![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hello i'm new to using DTS, but now new to vb, vb script and database programming. I'm getting this weird time out error when i try to up a |
|
'************************************************* ********************* ' Visual Basic ActiveX Script '************************************************* *********************** Function Main() set myConn = CreateObject("ADODB.Connection") set myRecordset = CreateObject("ADODB.Recordset") myConn.Open = "Provider=SQLOLEDB.1;Data Source=(local); Initial Catalog=Forté;user id = 'forteDBuser';password='userpassword'" strSelect = "SELECT * FROM Customers" set myRecordset = myConn.Execute(strSelect) while not myRecordset.EOF if not isNull(myRecordSet("CircleExpirationDate")) then if DateDiff("d", myRecordSet("CircleExpirationDate"), Date) > 366 then strUpdate = "UPDATE Customers SET MemberCircle = 0 WHERE CustomerId = " & myRecordset.Fields("CustomerId") msgbox strUpdate myConn.execute strUpdate msgbox "got here" end if end if myRecordset.MoveNext wend Main = DTSTaskExecResult_Success End Function |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Thank you very. I tired that and it worked. Thank you again. But do you or anybody know why i was getting that timeout error. I would just like to know for the future. I guess i was trying to make this problem a little to difficult. Thanks again, allan. |
![]() |
| Thread Tools | |
| Display Modes | |
| |