Forum Replies Created

Viewing 15 posts - 1,096 through 1,110 (of 1,923 total)

  • RE: Grouping

    You can , but only when u have a JOIN clause on the JobTitle table..

  • RE: BULK INSERT where source has variable number of fields

    Look up on Books Online (free 'Help' that comes with the SQL Server) for OPENROWSET.. that will help you resolve this issue..

  • RE: How to import one column using OPENROWSET ?

    Look, your City.txt file is a comma-separated file. Thus a delimiter of "\t" ( = Tab) will not do any good for you.. so i edited the format file to...

  • RE: Eliminating duplicate data in just one column

    try this:

    ; with numbered_dupes_cte as

    (

    select rn = row_Number() over (partition by c1, c2),

    c1, c2

    from table

    )

    select...

  • RE: How to import one column using OPENROWSET ?

    Are u using the correct path of the txt file? is your txt file well-formed? can u attach your input file?

  • RE: Getting Dates

    Harag, you seem to be very new to the forum, so i recommend you going through this following Jeff Moden's article first ; this article will help you present your...

  • RE: Getting Dates

    I definitely agree with Ron here ; you have not tried anything, then why would people consider working for you when u haven't even tried, or atleast that's what u...

  • RE: How to import one column using OPENROWSET ?

    1. Create a format file using the command mentioned in the following step:

    bcp Scratch.dbo.Names format nul -T -c -f Client.Fmt

    Things to note here is, i have used -c switch, which...

  • RE: Nested Select ?

    rothj (9/24/2010)


    Understood. You are absolutely correct and I will definitely apply this lesson learned in the future.

    Thank you very much for assisting me despite my short sightedness.

    Thanks for understanding,...

  • RE: Pivot data

    The only values for User are Bob Jones , Tim Ralph , Rob Tims ?

  • RE: Nested Select ?

    rothj (9/24/2010)


    Yeah, I realized it looked like crap and I was just reviewing the Forum Ettiquettes to correct it. Sorry

    I thought it would be a quick an easy select for...

  • RE: Nested Select ?

    Ok, with my frustration apart, here is one of the solution for this:

    First lest prepare a temp table and sample data:

    DECLARE @Tab TABLE

    (

    INAME VARCHAR(20),

    [DATE]...

  • RE: Nested Select ?

    693 visits, 246 points and still you are not clear on how to ask a question.. Hmm.. without ready-to-use sample data, its hard to spend time on checking this.. lets...

  • RE: SQL function returning NULL value though the data is present.

    DECLARE @XML XML;

    SELECT @XML = '<r>'+REPLACE(@Code_String, ',', '</r><r>')+'</r>';

    This

    1. removes any comma ( , ) character in the input string

    2. Replces </r><r> tags for the commas; the first </r>...

  • RE: How to import one column using OPENROWSET ?

    Use BCP/BULK INSET using "FORMAT FILE" or as u said, using OPENROWSET..

Viewing 15 posts - 1,096 through 1,110 (of 1,923 total)