Forum Replies Created

Viewing 15 posts - 1,561 through 1,575 (of 2,647 total)

  • RE: Using BULK INSERT with a non delimited flat file

    If there are certain "fixed" things (number of lines in each set that you would consider a "row") you can have someone write something to parse out this file. My...

    Jared
    CE - Microsoft

  • RE: Using BULK INSERT with a non delimited flat file

    sjimmo (2/22/2012)


    In your FMT file, you need to set up for each field the field type, length. I believe (it's been awhile) that you can tell it which position the...

    Jared
    CE - Microsoft

  • RE: How do I return only entries with multiple categories in a junction table?

    Can you group it by the person and do a distinct count of degree with the same criteria you have in that query. Then add HAVING COUNT(DISTINCT degree) >...

    Jared
    CE - Microsoft

  • RE: Current Date issue in where clause

    Jeremy... (2/22/2012)


    Lynn Pettis (2/22/2012)


    Wildcat (2/22/2012)


    Hakuna Matata (2/22/2012)


    Try this :

    WHERE CONVERT(DATE,FM.Openeddate)=CONVERT(DATE,GETDATE())

    I don't recommend to use this

    I agree with wildcat as it would cause a table scan. The convert function has...

    Jared
    CE - Microsoft

  • RE: Current Date issue in where clause

    Lynn Pettis (2/22/2012)


    Wildcat (2/22/2012)


    Hakuna Matata (2/22/2012)


    Try this :

    WHERE CONVERT(DATE,FM.Openeddate)=CONVERT(DATE,GETDATE())

    I don't recommend to use this

    I agree with wildcat as it would cause a table scan. The convert function has to...

    Jared
    CE - Microsoft

  • RE: Using BULK INSERT with a non delimited flat file

    dnolan5323 (2/22/2012)


    Thanks for the replies. Is there no way to use BCP and Bulk Insert to perform this task?

    Not until you create a file that fits a row/column format.

    Jared
    CE - Microsoft

  • RE: Using BULK INSERT with a non delimited flat file

    I'm not sure that you can do this without some more manipulation beforehand or "possibly" in SSIS. BULK INSERT is meant to insert large amounts of data that are...

    Jared
    CE - Microsoft

  • RE: PIVOT maybe?

    SQLKnowItAll (2/22/2012)


    TT-131210 (2/22/2012)


    I am getting error when I run this.

    Mmm hmm... What version of SQL Server are you running?

    HINT: Run this SELECT @@version

    I believe ColdCoffee's suggestion is exactly what you...

    Jared
    CE - Microsoft

  • RE: PIVOT maybe?

    TT-131210 (2/22/2012)


    I am getting error when I run this.

    Mmm hmm... What version of SQL Server are you running?

    HINT: Run this SELECT @@version

    I believe ColdCoffee's suggestion is exactly what you need.

    Jared
    CE - Microsoft

  • RE: SQL Server Job Notifications

    I give up! What group is in the FROM line? 🙂

    Jared
    CE - Microsoft

  • RE: Current Date issue in where clause

    Jeremy... (2/22/2012)


    Thanks Lynn. Is there a good place to find information on this topic? I've seen the below done 500 different ways and usually have trouble deciphering what...

    Jared
    CE - Microsoft

  • RE: Update Statement

    andersg98 (2/22/2012)


    I am not sure what you mean by "add to" but this should update the field to the value you specified

    UPDATE PROGRESS_NOTE

    SET PROGRESS_NOTE.SUPERVISOR_MONIKER =...

    Jared
    CE - Microsoft

  • RE: update statement

    I'm confused... What happened here?

    Jared
    CE - Microsoft

  • RE: Distribution cleanup job failing - transactional replication

    At least you found the source of the problem and were able to rectify it! Happy Fat Tuesday!

    Jared
    CE - Microsoft

  • RE: Distribution cleanup job failing - transactional replication

    MyDoggieJessie (2/21/2012)


    Success! 😎

    To tell you the truth I am blown away that there wasn't more information on this on BOL or MS forums...almost makes me feel special that I AM...

    Jared
    CE - Microsoft

Viewing 15 posts - 1,561 through 1,575 (of 2,647 total)