Forum Replies Created

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

  • RE: SSIS project fail to build - CPackage::LoadFromXML fails

    bmg002 - Wednesday, March 1, 2017 8:33 AM

    I have a theory on this:
    In GIT, do you have your BIN folder included?  if...

  • RE: SSIS project fail to build - CPackage::LoadFromXML fails

    This has finally been solved.
    I had an Microsoft odata driver installed and a package connection manager that used that driver in one of the packages.
    Removing that connectoion manager...

  • RE: SSIS project fail to build - CPackage::LoadFromXML fails

    sgmunson - Monday, February 27, 2017 2:19 PM

    Seems like a problem with the actual XML in the package either getting corrupted (often...

  • RE: Currency Comversion SSAS

    fact_sales does have a sales_date but in this case that date should not be used as exchange_rate_date

    I should probably have mentioned that it is related to ledger transactions and fact_accounting...

  • RE: Bitwise OR function

    mister.magoo (3/19/2014)


    joakim.fenno (3/19/2014)


    Thanks!

    You're welcome 🙂

    Lets start with the "int" flag version, its does not produce the correct output if you add a value 101 (menas true for month 1, false...

  • RE: Bitwise OR function

    mister.magoo (3/18/2014)


    Here are three ways you could tackle this. I prefer number three, which is to store the month number as a tinyint.

    They all produce the same result, but query...

  • RE: Bitwise OR function

    Jeff Moden (3/18/2014)


    joakim.fenno (3/18/2014)


    The bit_flag column contains 12 flag (and is therefore a nvarchar(12)) in the real example

    Gosh. That's 24+2 or 26 bytes to store what could be stored...

  • RE: Bitwise OR function

    ChrisM@Work (3/18/2014)


    Here's a solution which will work with many values. First the UDF:

    ALTER FUNCTION fn_BITWISE_OR

    (

    @col1 VARCHAR(3)

    )

    RETURNS VARCHAR(3)

    AS

    BEGIN

    -- try row-wise

    DECLARE @LastValue INT

    SELECT @LastValue = 000

    SELECT @LastValue = @LastValue | d.bit_flag

    --...

  • RE: Bitwise OR function

    Sean Lange (3/18/2014)


    joakim.fenno (3/18/2014)


    ChrisM@Work (3/18/2014)


    joakim.fenno (3/18/2014)


    OK

    CREATE TABLE my_table (col1 nvarchar(25) NULL, bit_flag nvarchar(3) NULL)

    INSERT INTO my_table VALUES('A', '100'), ('A', '001'),('B', '010'),('A', '001');

    expected output from query :

    A 101

    B 011

    The bit_flag column...

  • RE: Bitwise OR function

    ChrisM@Work (3/18/2014)


    Although just about every reference on the first page returned by Google specifies two operands, the TSQL BITWISE OR actually works with a chain like this:

    -- on a...

  • RE: Bitwise OR function

    ChrisM@Work (3/18/2014)


    joakim.fenno (3/18/2014)


    OK

    CREATE TABLE my_table (col1 nvarchar(25) NULL, bit_flag nvarchar(3) NULL)

    INSERT INTO my_table VALUES('A', '100'), ('A', '001'),('B', '010'),('A', '001');

    expected output from query :

    A 101

    B 011

    The bit_flag column contains 12 flag...

  • RE: Bitwise OR function

    Sean Lange (3/18/2014)


    joakim.fenno (3/18/2014)


    OK

    CREATE TABLE my_table (col1 nvarchar(25) NULL, bit_flag nvarchar(3) NULL)

    INSERT INTO my_table VALUES('A', '100'), ('A', '001'),('B', '010'),('A', '001');

    expected output from query :

    A 101

    B 011

    The bit_flag column contains 12...

  • RE: Bitwise OR function

    ChrisM@Work (3/18/2014)


    joakim.fenno (3/18/2014)


    ChrisM@Work (3/18/2014)


    If you can guarantee that your aggregate function would always and only ever generate the two values required by BITWISE OR, then you will find it far...

  • RE: Bitwise OR function

    ChrisM@Work (3/18/2014)


    If you can guarantee that your aggregate function would always and only ever generate the two values required by BITWISE OR, then you will find it far far easier...

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