Forum Replies Created

Viewing 15 posts - 196 through 210 (of 223 total)

  • RE: DTS and Nulls - Active X

    Unfortunately the ISNULL in DTS uses vbScript not SQL so the use should be like this

    IF ISNULL(DTSSourceColumnName) THEN

            DTSDestinationColumn = " "

    ELSE

            DTSDestinationColumn = DTSSourceColumn

    END IF

    Hope this helps!

  • RE: Debugging

    Try this:

    IF IsNull(DTSSource("Fld1") = cBool(True) THEN

               DTSDestination("Fld1") = "  "

    ELSE

               DTSDestination("Fld1") = DTSSource("Fld1")

    END IF

  • RE: DTS to TEXT File

    Ray, you could try something like this.

     sOutString = Day(Now)  & Hour(NOW)   & Minute(Now)  & Second(Now)

    and then append sOutString as part of the file name

  • RE: OPen error

    I always try to use the SET oRecordset = oConnection.Execute(strSQL) - seems to give me less headaches.

  • RE: DTS using Stored Procedure problem

    Marcelo,

    Can you run the DTS package directly without receiving an error?

  • RE: DTS and Output from contained Stored Procedure

    I created a proc that accepts one input parameter and returns one output parameter. I created two Global Parameters (one for input and one for output - I could have...

  • RE: DTS and Output from contained Stored Procedure

    Matt,

    From the Output parameters tab select the "Create Global Variables" option. This will let you choose the type of output expected (IE single value, recordset...).

    Hope this helps

  • RE: DTS truncating field in export to text file

    Simon,

    If you are running on XP take a look at the thread on this site entitled "XP SP2 screwing up DTS transform on Text field" If that doesn't help...

  • RE: Problem Copying file using ActiveX Task

    Jay,

    Do both the SourceShare and WorkingDir contain a fully qualified path and filename?

  • RE: DTS???

    Try changing this line from True to False

    objBL.SGDropTables = True (False)

  • RE: DTS???

    If you are running it on your local SQL server then use this (local) for the datasource. If you have the option I would install SQLXML 3.0 on your machine...

  • RE: DTS???

    Try this:

    '*************

    '** Changed **

    '*************

    'Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad")

    '**************

    '** NEW Line **

    '**************

    Set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad.3.0")

    '*************

    '** Changed **

    '*************

    'objBL.ConnectionString = "provider=SQLOLEDB.1;datasource=JMRSQLBI;database=MyDatabase;uid=test;pwd=test"

    '**************

    '** NEW Line **

    '**************

    objBL.ConnectionString = "provider=SQLOLEDB.1;datasource=JMRSQLBI;database=MyDatabase;integrated security=SSPI"

    '***************

    '** NEW Lines **

    '***************

     objBL.KeepIdentity = False

     objBL.CheckConstraints =True

     objBL.SchemaGen =...

  • RE: DTS Issue For FTP w/ Batch File

    James,

    Does the text file get generated anywhere on the server? Can you find the file?

  • RE: DTS???

    Jean-Marie,

    I have done a little with the XML import so I don't know how much I can help - could you post some of the code so I can look...

  • RE: Export to textfile changes data

    Robert,

    Try wrapping each Bit field with CINT - sString = CINT(Output field)

Viewing 15 posts - 196 through 210 (of 223 total)