• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

SQL Server Question

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    SQL Server Question

    I have a VBScript in DTS that checks files and returns me their timestamps. This is so I can make sure I dont process the same file more than once.

    How can I return the timestamp and filename into a table I have designed.

    I have a Global Variable which the Script sets. Then I have a Exec SQL Statement which uses an insert into. How do I pass the Global Variable to the insert into statement or am I doing this wrong?

    Anyone
    What happens in General, stays in General.
    You know what they say about assumptions!

    #2
    Originally posted by MarillionFan
    I have a VBScript in DTS that checks files and returns me their timestamps. This is so I can make sure I dont process the same file more than once.

    How can I return the timestamp and filename into a table I have designed.

    I have a Global Variable which the Script sets. Then I have a Exec SQL Statement which uses an insert into. How do I pass the Global Variable to the insert into statement or am I doing this wrong?

    Anyone
    Can you just create the SQL statement inside the ActiveX script? That way you can access the Global Variable
    Carpe Pactum

    (does fuzzy logic tickle?)

    Comment


      #3
      Got it. Had to pass it as a parameter.
      What happens in General, stays in General.
      You know what they say about assumptions!

      Comment

      Working...
      X