Forum Replies Created

Viewing 15 posts - 2,806 through 2,820 (of 11,678 total)

  • RE: Inconsistent results when converting to time

    We never saw the actual query though.

    It is possible that you filter those rows out somewhere (with a join or something like that).

    However in some cases the query optimizer might...

  • RE: Bulk load error

    The character at the end of the line. You know, the one you get when you hit "enter" on your keyboard.

    Can you share the bulk insert command you used?

  • RE: update old data with new data

    pk2dpvp (6/5/2014)


    very nice, thanks alot! 😀

    I've been struggling with this for a few hours...

    Thanks for the help! really appreciated 😀

    groetjes :p

    De groeten terug 😉

  • RE: Bulk load error

    Do you have any carriage returns/line feeds in the file where they don't belong?

  • RE: update old data with new data

    UPDATE a

    SET omschrijving= SP.[omschrijving]

    ,verkoopprijs= SP.[verkoopprijs]

    ,gewijzigd= getDate()

    FROM artikelen a

    LEFT OUTER JOIN [Hofstede].[dbo].[sparepartsupdate] SP

    ON a.PartNrFabrikant = SP.PartNrFabrikant

    WHERE (AR.omschrijving != SP.omschrijving) OR (AR.verkoopprijs != SP.verkoopprijs);

  • RE: update old data with new data

    Here you go:

    UPDATE artikelen

    SET omschrijving = [Hofstede].[dbo].[sparepartsupdate].[omschrijving] ,

    verkoopprijs = [Hofstede].[dbo].[sparepartsupdate].[verkoopprijs] ,

    gewijzigd = getDate()

    WHERE(PartNrFabrikant in(

    SELECT ar.PartNrFabrikant -- only 1 column here

    FROM artikelen AR

    LEFT OUTER JOIN [Hofstede].[dbo].[sparepartsupdate] SP

    ON AR.omschrijving !=...

  • RE: Just curious, what are your SQL pet peeves ?

    GilaMonster (6/5/2014)


    Koen Verbeeck (6/5/2014)


    GilaMonster (6/5/2014)


    thomashohner (6/5/2014)


    What is the preference on column aliases ?

    AS. Equals sign is for comparing values or assigning values. 😀

    Yes, you assign the result of the expression...

  • RE: update old data with new data

    The first 3 errors are there because those columns might be present in multiple tables, and SQL Server doesn't know from which table to take it.

    The last error is because...

  • RE: Just curious, what are your SQL pet peeves ?

    GilaMonster (6/5/2014)


    thomashohner (6/5/2014)


    What is the preference on column aliases ?

    AS. Equals sign is for comparing values or assigning values. 😀

    Yes, you assign the result of the expression to a column....

  • RE: Inconsistent results when converting to time

    greg.bull (6/5/2014)


    Dear All,

    Thanks for this, I think I've found some non-valid times, and this is the problem. SQL error messages never lie!

    Regards, Greg

    Now I'm curious what went wrong of course...

  • RE: No Value Given for One or More Required Parameters oledb to Excel.

    Or you could set the datatype in SSIS to DT_NTEXT and save you all the trouble in VB.NET.

  • RE: Just curious, what are your SQL pet peeves ?

    I prefer the alias with the equal sign. It is very easy to align everything, especially when you have larger expressions.

  • RE: Sum Three Columns From Two Tables

    If you add something to NULL, the result is NULL. Then the ISNULL fuction will replace this with 0. So the output is what one would expect considering the formulas...

  • RE: DTUTIL to deploy a package

    Dtutil can only be used for deploying packages in the package deployment model.

    It cannot be used for the project deployment model (which uses the SSIS catalog).

  • RE: Inconsistent results when converting to time

    greg.bull (6/5/2014)


    Yes, well good idea - but I've trimmed just in case, and displayed the string with [] around it, just to be sure that's not the problem.

    I've tried to...

Viewing 15 posts - 2,806 through 2,820 (of 11,678 total)