Forum Replies Created

Viewing 15 posts - 91 through 105 (of 116 total)

  • RE: data conversion

    Fixed length is a pain to work with in DTS. Easier is to import the file into an import buffer table having a single column. Then use a user defined function,...

  • RE: Triggers with parameters.

    If you want to get more functionality in your programming, take a look at books-online first. For example: why miss out on something like "IF UPDATE"...

    IF UPDATE (column)

    BEGIN

     INSERT INTO audit_table(column)

     SELECT...

  • RE: stripping numeric text out of a field

    I have a bunch of functions for string cleaning. As far as execution plans go, is it more optimal to use different functions?

  • RE: Data Migration

    Mapping column to column directly in the Transformations tab is dangerous because of a bug in DTS designer. Occasionally, upon opening a package, the mapping will reverse: A-Z, ..., Z-A....

  • RE: Comparing only Time in Sql?

    If milliseconds are important than you need style 14/114:

    CONVERT( VARCHAR, @dt1, 114 ) >= CONVERT( VARCHAR, @dt2, 114 )

  • RE: DTSRUN customized output

    I don't know what kind of output you get, but you can:

    In DTS designer, right click in the open field, choose package properties, click the logging tab, and go from...

  • RE: update time

    Yes, but if you rely on people to remember to update the update column, it won't be updated every time. An update trigger is the best solution.

  • RE: Anyway to make this de-duping process run faster?

    DELETE

     A

    FROM

     tableA AS A

    INNER JOIN

     tableA AS B

    ON

     A.ID > B.ID

     AND

     A.column_of_interest = B.column_of_interest

     

  • RE: DTSRUN customized output

    You can log each step in a scheduled job.

    Open the job, open a step for editing, click the advanced tab, choose an output file location in the "Transact-SQL Script" section, choose...

  • RE: Excel Column widths larger than 255....

    Yes, but don't you have to do a disconnected edit in DTS to handle columns larger than 255?

  • RE: Triggers for Auditing

    > Not always! update on blob fields (text, ntext or image) will not fire triggers (This is applicable to both

    > instead of and after triggers)

     

    That's...

  • RE: Problem with Log File!

    Why switch between Simple and Full? If you have no need for point-in-time recovery, then you should maintain your database in Simple mode. If you do have recovery needs, then...

  • RE: Clustered PK constraint fails to create on a large table

    I recommend learning about good database design before doing any more creating or modifying on your server.

    Books online (BOL) has some introductory information. Press F1 in Enterprise Manager or Query...

  • RE: Trouble in suppressing error messages

    Cursors add a lot of overhead. I've always been able to solve problems using temp tables.

     DECLARE @COUNTER INT

     DECLARE @SIZE INT

     DECLARE @ERROR INT

     DECLARE @RECORD_ID INT

     DECLARE @SOME_COLUMN VARCHAR(128)

     DECLARE @TEMP_TABLE TABLE(

      RECORD_ID INT

      ,SOME_COLUMN VARCHAR(128)

      ,LOOP_ID...

  • RE: what might be causing queries to run painfully slow all the sudden?

    Check to see if they dropped any indexes.

Viewing 15 posts - 91 through 105 (of 116 total)