Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)

  • RE: Retrieve GlobalVariables in an ExecuteSQLTask

    I love using this method for things like this.

    Open the Disconnected Edit dialog.  Locate the Execute SQL task and get the exact name. It's ususally something like "DTSTask_DTSExecuteSQLTask_1"...

  • RE: DTS Hanging (in ActiveX Script Task when calling another DTS)

    To better understand what's going on, consider the following:

    The main package has basically two different types of tasks; an Execute Process task and an ActiveX Script Task described...

  • RE: Import string to float error in .csv file

    T-SQL will implicitly convert the value from a string to a float.  DTS isn't so forgiving.

    In the transformation, delete the connection from the source column to the destination,...

  • RE: Send Email

    I don't have SQL Mail installed, nor will my IT admins allow me to install and configure it.  Here is my work around in an ActiveX Script Task.  You...

  • RE: read text file contents in a stored procedure

    Forgot one thing...

    If the @noErr variable is 0, you may want to set @out_contents as

    'ERROR - Handle: ' + @hr + '; Method: ' + @errMethod + ';...

  • RE: read text file contents in a stored procedure

    Here's a procedure that may solve the problem.  I suppose it all depends on where you need to actually execute the "Read File" from.  This proc takes in the...

  • RE: DTS Local packages Backing up and restore

    I had to come up with a way to back them up rather than saving to an external file, and then to load them into VSS.

    It was a...

  • RE: Dynamic DTS

    My post must have executed the same time as your followup.

    If you're using TSQL as your source of the data pump task, you can still follow the examples above.  Dig...

  • RE: Dynamic DTS

    This should do it...

    ' Assuming GV1 is formatted as YYYYMMDD
    Dim sz_month, sz_dest, o_task
    sz_month = Left(DTSGlobalVariables("GV1"), 6)
    sz_dest = "[Database].[Owner].[Table_Prefix_" & sz_month & "]"
    ' If you don't know the...
  • RE: Dynamically change data transformations

    I don't understand all the requirements, but have a look at this...

    In your DTS, add an ActiveX object and a Source file object

    Use a Scripting.FileScripting object to walk your source...

  • RE: Return date only from getdate()

    Whoops -- I added my post without going to page two, and now I see that TnJMoseley posted the exact same thing...

  • RE: Return date only from getdate()

    FYI - when I need to counts by date on a DateTime field where the time value is populated, I just zero out the time value with

    SELECT CAST(Convert(VarChar(8), GetDate(), 112)...

  • RE: Windows vs Mixed Mode Authentication

    AJ is absolutely correct.  Plus, you'll gain the advantage of logging (if you choose to do so) user activity -- ie, add LASTMOD_NM, LASTMOD_DT columns to your tables, add some...

  • RE: Deleting Duplicate Rows

    Simple solution -- I do this all the time.

    DELETE a

     FROM t_table a

     INNER JOIN t_table b

     ON (

      a.donor_id = b.donor_id AND

      a.id > b.id)

  • RE: Service wont restart after a reboot

    also check to make sure that the service account properties does not have password expiration. our domain has that policy and when the account was set up, by default, the...

Viewing 15 posts - 1 through 15 (of 17 total)