Forum Replies Created

Viewing 15 posts - 7,666 through 7,680 (of 13,876 total)

  • RE: Conversion failed when converting date and/or time from character string.

    ffarouqi (1/18/2016)


    Fyi...we've used isdate to eliminate the non-date stuff, but the problem still persists. Kindly, let me know which piece of code is causing the issues, because if I run...

  • RE: Muting the Immutable

    qbrt (1/18/2016)


    I am in the process of transitioning our eCommerce database to the declarative model of SSDT to move the database development process into our CI pipeline. Using idempotent MERGE...

  • RE: what is the reason by rownum not performing on '=' & '>' operator.

    tusharchpatil (1/18/2016)


    Hi All,

    If i used select * from emp where rownum < 5;

    I am getting the correct output of table ie. 4 rows.

    but it is not working on rownum >...

  • RE: Conversion failed when converting date and/or time from character string.

    Dreamsz (1/18/2016)


    Hi,

    I am facing an issue as described below.

    select * from dbo.xyz

    where a in ('a string of multiple values')

    and <some condition>

    and cast(a as datetime)=cast(b as datetime)

    a is varchar(50), and...

  • RE: adding sequence number in the table

    ROW_NUMBER() is your friend here. Something like:

    select rw = ROW_NUMBER() OVER (PARTITION BY KEY_NO ORDER BY DATA)

  • RE: Getting column change history...

    My pleasure. Glad you got it working.

  • RE: Getting column change history...

    Have you considered putting 'lag' in your CTE, to get 'previous' price and then selecting from your CTE if price <> previous price?

  • RE: LEFT JOIN

    Welsh Corgi (1/15/2016)


    Phil Parkin (1/15/2016)


    Welsh Corgi (1/15/2016)


    drew.allen (1/14/2016)


    Welsh Corgi (1/14/2016)


    I need to create a new table that has an Identity Column so that I can delete the duplicates.

    No, you don't....

  • RE: LEFT JOIN

    Welsh Corgi (1/15/2016)


    drew.allen (1/14/2016)


    Welsh Corgi (1/14/2016)


    I need to create a new table that has an Identity Column so that I can delete the duplicates.

    No, you don't. You can use...

  • RE: Load data from In memory(Table Variable) table in SSIS

    Are you referring to this type of table variable?

    The older type of table variable is not in-memory. Nor is it good for holding large quantities of data.

  • RE: LEFT JOIN

    Welsh Corgi (1/14/2016)


    I execute the following Query:

    INSERT INTO POSTAL (ID,Latitude, ID.Longitude, CityTownshipID, CountyRegionID,StateProvinceID,CountryID)

    SELECT ZipCode, Latitude, Longitude,CityTownshipID , CountyRegionID, StateProvinceID, CountryID

    FROM Postal_Codes_Import

    WHERE NOT EXISTS (SELECT *

    ...

  • RE: LEFT JOIN

    Welsh Corgi (1/14/2016)


    Phil Parkin (1/14/2016)


    The WHERE NOT EXISTS () construction often performs better than using a LEFT JOIN – I would recommend a test.

    You should include table schemas in your...

  • RE: LEFT JOIN

    The WHERE NOT EXISTS () construction often performs better than using a LEFT JOIN – I would recommend a test.

    You should include table schemas in your code to avoid the...

  • RE: LEFT JOIN

    Why would the Id be the same as the ZipCode?

  • RE: Fast CSV Reader

    Alvin Ramard (1/14/2016)


    It's all .NET, so could just try a script task or transform in SSIS. 😀

    Script Component Source is where I would start, yes ...

Viewing 15 posts - 7,666 through 7,680 (of 13,876 total)