Forum Replies Created

Viewing 15 posts - 52,801 through 52,815 (of 59,070 total)

  • RE: BULK INSERT & Text Qualifier

    remember this code was done based on BOL examples, but I don't remember the topic.

    First, nice idea... hadn't thought about doing it that way. Great way to import...

  • RE: BULK INSERT & Text Qualifier

    Sergiy (1/14/2008)


    All of you are wrong.

    Using "," as delimites is an error waiting to happen.

    mdjtlj, ask you supplier to build a test file containing '19" Monitor'.

    Then try to process that...

  • RE: How to combine aggregate function with * in SELECT?

    My question is: is there any way I can achieve this goal without the GROUP By phrase?

    I could be wrong, but I don't think there is...

  • RE: Drop constraint if exists

    Alter table won't support a 4 part naming convention, anyway... object functions and Alter table all support 3 part naming conventions... why not use them?

  • RE: How to combine aggregate function with * in SELECT?

    If you have 20 columns in table A, and you try to list all 20 columns in the presence of a COUNT, then you must list all 20 columns in...

  • RE: Group BY question

    Shoot... I hope I didn't just help someone do their homework without them trying themselves, first...

  • RE: Group BY question

    This will do it... assuming that names are unique...

    --===== Simulate the OPs table

    -- This is NOT part of the solution

    DECLARE @yourtable TABLE

    ...

  • RE: Stripping out double quotes (") in bulk insert

    Thanks... that's half the battle... 😉

    Do you have any documentation on the record layout of the file you intend to import? And can you attach a file with,...

  • RE: Date Check

    Heh... yep, I knew that Michael... sorry I didn't state things clearly... I wanted to know the condition of the OPs data.

  • RE: Date Check

    Just curious... I can see where a NULL end date could be interpreted as 31 Dec 9999, but what does a NULL start date indicate other than something hasn't started?...

  • RE: Format Date in SQL Table

    GSquared (1/18/2008)


    He's already mentioned that the column is being changed to datetime. He just wants to reformat it first (didn't say why). So, he's on the right track...

  • RE: Running a Query Using a Text File for Input

    Very good comprehensive article. I just don't understand why a simple BULK INSERT couldn't be used to populate a temp table...

  • RE: How do I increment a DB id

    If I remember correctly, @@IDENTITY has all the potential problems you describe including grabbing from the wrong table in the presence of triggers. I've never seen Scope_Identity fail in...

  • RE: Member Function Concept.

    No, no... you have to eat the boards if you use that word 😛

  • RE: Combine 2 Text Fields??

    Dang! You're spot on! I DO have better things to do than to help you. Thanks for the advice 😉

Viewing 15 posts - 52,801 through 52,815 (of 59,070 total)