Forum Replies Created

Viewing 15 posts - 8,806 through 8,820 (of 26,490 total)

  • RE: Bulk insert messing up fields

    Playing a little bit, I think your data may be a bit messed up. In you BULK INSERT you tell it to start at row 2, this tells me...

  • RE: Bulk insert messing up fields

    salma.pinky (2/10/2013)


    GO

    Use test

    DROP TABLE PDTEST

    create table pdtest

    (

    CustID INT IDENTITY(1,1),

    work_phone_extension varchar(5),

    residential_postal_or_zip_code varchar(30),

    residential_street_address_line_1 varchar(30),

    residence_phone varchar(17),

    work_phone varchar(17),

    name_part varchar(30),

    mailing_city varchar(20),

    mailing_postal_or_zip_code varchar(30),

    mailing_street_address_line_2 varchar(30),

    mailing_street_address_line_1 varchar(30),

    ...

  • RE: Date Query Help

    First, you will need the following function to run my code down farther below:

    /****** Object: UserDefinedFunction [dbo].[DelimitedSplit8K] Script Date: 2/9/2013 1:22:37 PM ******/

    DROP FUNCTION [dbo].[DelimitedSplit8K]

    GO

    /****** Object:...

  • RE: ORDER BY Query Question

    kylemkr85 (2/8/2013)


    Thanks for the quick response, however, I am receiving the following error below:

    Msg 145, Level 15, State 1, Line 1

    ORDER BY items must appear in the select list if...

  • RE: Wrong Index Being Used

    At this point, I will bow out and defer to Paul. He has spent much more time than I digging into these things than I and has a much...

  • RE: ORDER BY Query Question

    Give this a shot:

    SELECT DISTINCT

    wcv.contact_name

    ,wcv.contact_organization_name

    ,wcv.workitem_title

    ,wcv.workitem_number

    ,wcv.workitem_created_on

    ,wcv.assigned_to_worker_name [Assigned...

  • RE: 2008 R2 6 core 12 thread licensing ?

    You still only have a total of 12 cores, the other 12 cores are hyperthreads and they should not affect the number used by SQL Server, but I may be...

  • RE: Wrong Index Being Used

    Roger Sabin (2/8/2013)


    So, you are saying that SQL Server determined --

    the cost of finding a few records (using second index) + lookup for other fields

    was greater than ---

    the cost...

  • RE: Wrong Index Being Used

    Brandie Tarvin (2/8/2013)


    Lynn Pettis (2/8/2013)


    Roger Sabin (2/8/2013)


    I understand what's been said.

    But I still don't see why the first index is more "correct" when it requires trolling through thousands of records...

  • RE: Are the posted questions getting worse?

    L' Eomot Inversé (2/8/2013)


    Lynn Pettis (2/8/2013)


    Revenant (2/8/2013)


    Lynn Pettis (2/8/2013)


    Am I (shudder) an idiot?

    No. Is there anything that make you think you are?

    🙂

    Not really, other than having someone call me one...

  • RE: Wrong Index Being Used

    Roger Sabin (2/8/2013)


    I understand what's been said.

    But I still don't see why the first index is more "correct" when it requires trolling through thousands of records to find just the...

  • RE: Are the posted questions getting worse?

    Revenant (2/8/2013)


    Lynn Pettis (2/8/2013)


    Am I (shudder) an idiot?

    No. Is there anything that make you think you are?

    🙂

    Not really, other than having someone call me one here on the forums.

  • RE: Are the posted questions getting worse?

    Am I (shudder) an idiot?

  • RE: assertions

    mehta.saurabhj (2/8/2013)


    No i said similar have a look you idiot!!!

    This is a professional site and this is totally uncalled for.

  • RE: assertions

    mehta.saurabhj (2/8/2013)


    No i said similar have a look you idiot!!!

    Really???? Look again at your first post, I quoted it in mine.

    Your statement from your original post, emphasis...

Viewing 15 posts - 8,806 through 8,820 (of 26,490 total)