Forum Replies Created

Viewing 15 posts - 391 through 405 (of 605 total)

  • RE: Looping query Parent and child, and childs childs ......

    The only way I can see you achieving this is by linking all the tables together using a left outer join.

    For example.

    create table tmp_parent

    (parentid int, name nvarchar(5))

    create table tmp_child1

    (child1id int,parentid...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DTS Send Resultset in the body of an email as "text"

    You are missing the quotes here:

    objMail.TextBody = GlobalVariable (OIW_DOLLAR).Value <-- this fails

     

    should be:

    objMail.TextBody = GlobalVariable ("OIW_DOLLAR").Value


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DTS Send Resultset in the body of an email as "text"

    store the output in a global variable which you can then access in your code


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Deleting Duplicate records

    Easiest way is to create a temporary table in which you insert all the records that are duplicates. Remember that this includes the records you want to keep as well....


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Version control for SQL data

    I would go back to the user and tell them that you will backup the database at the point of a new version and can then restore from the backup...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Dynamically set the value of the Inner Global Variables

    I understand what you are trying to do now. I've never tried it myself, but this article from sqldts.com is what you are looking for. It loads a child package...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Dynamically set the value of the Inner Global Variables

    You need to create an activex task somewhere that is called before the value of the variable is required. The syntax to set the value of the variable is:

    dim yourlocalvariable

    .....logic...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Use existing connection is activeX script

    From your post I am not too sure what you are trying to do.

    However, at a guess, I would suggest creating and populating a global variable in the first activex...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Reducing Log File size below initial size

    I am as surprised as you are. I would suggest reading the chapter "Shrinking the Transaction Log" in BOL. I think you need to investigate the virtual log concept. Sorry...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: How to save DB diagram, generated in SQL ,in word format?

    As far as I know, there is no way to do it directly.

    You can use a product like emarcadero to generate diagrams which will also give you other features...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Reducing Log File size below initial size

    I would

    Backup log xxx with truncate_only

    Then use DBCC SHRINKFILE and specify the size that you want. This will shrink the physical log file.

    Then go into enterprise manager and change your settings...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Count all Rows in all Tables

    sp_MSforeachtable will help do what you are looking for.

     

    Someone passed this on to me at this site. Search for it and you will see the code to do exactly what...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: DTS Import from Excel Spreadsheet problem

    If dts is not playing the game properly the only thing you can really do, is to do the export through an activex task.

    That way you can format the...


    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: column sum

    select sum(filesize) as MB, sum(filesize)/1000 as GB
    from o_file
    where volid = 2 and groupid = 200
     

    ------------------------------
    The Users are always right - when I'm not wrong!

  • RE: Text data..storage

    An obvious way is to break the text column up during the insert and insert one column into seperate table columns that are large enough to hold the data required....


    ------------------------------
    The Users are always right - when I'm not wrong!

Viewing 15 posts - 391 through 405 (of 605 total)