Forum Replies Created

Viewing 15 posts - 841 through 855 (of 3,544 total)

  • RE: Export SQL Table(only one table) data to multiple csv worksheets using SSIS

    madan.kapil-1069442 (1/16/2014)


    May be I am able to add tabs to it by opening it in excel.

    When you open a csv file in Excel, Excel loads it as a sheet in...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Date conversion problem

    LinksUp (1/15/2014)


    guessing that 40511 is some Julian type date

    40511 is the serial date in excel for 29/11/2010

    Excel holds dates as days from 01/01/1900 (where 01/01/1900 = 1)

    So your method of...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: bulk insert problem

    please post the format file as your columns do not match the data

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: SSRS filters using "IN"

    SSRS IN operator works on Arrays, convert your string list to array using Split

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How to print multiple column values in column groups?

    First you need to change your query to produce the following

    MonthCategoryCategoryValueDistrictnameStorenameEmployeename

    JanCAT15district1store1employee1

    JanCAT15district1store1employee1

    JanCAT15district1store1employee1

    JanCAT24district1store1employee1

    JanCAT24district1store1employee1

    JanCAT24district1store1employee1

    FebCAT110district1store1employee1

    FebCAT110district1store1employee1

    FebCAT21district1store1employee1

    FebCAT21district1store1employee1

    MarchCAT13district1store1employee1

    MarchCAT13district1store1employee1

    MarchCAT13district1store1employee1

    MarchCAT22district1store1employee1

    MarchCAT22district1store1employee1

    MarchCAT22district1store1employee1

    Then using the wizard create the matrix like this

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Export SQL Table(only one table) data to multiple csv worksheets using SSIS

    madan.kapil-1069442 (1/15/2014)


    Koel - I've a requirement to run 2 separate sql commands and post both result sets in separate csv tabs (sheet1.. sheet2) within a single csv file.. Can you...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How to print multiple column values in column groups?

    What do you mean by 'sum(CAT1) for Jan month'

    CAT1 is a category

    What value do you want below each month for each category, your query seems to have a few summed...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How to print multiple column values in column groups?

    Note sure exactly what your'e after, but if it is to show months under each category and the count of rows under each month then

    Add a matrix to the body...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Error converting data type varchar to bigint.

    patrickmcginnis59 10839 (1/14/2014)


    In this snippet:

    sqlcmd = "Create table #Eft_Transfer( " & vbCrLf _

    & " EFT_No varchar(20), null , " & vbCrLf _

    & " Effective_Date datetime , " & vbCrLf _

    &...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Error converting data type varchar to bigint.

    You cannot cast 'EFT0000000220' to bigint.

    You can cast the numerical part, ie CAST(SUBSTRING('EFT0000000220',4,10) as bigint)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: SSRS execution warning message

    What is the expression that is failing?

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Obtaining a comma delimited list for each group in the output of a Group By query

    ;WITH result (category,ids) AS (

    SELECT category,

    STUFF((SELECT ',' + CAST(b.id as varchar(10))

    ...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Grant Fritchey (1/10/2014)


    ChrisM@Work (1/10/2014)


    Grant Fritchey (1/10/2014)


    Jeff Moden (1/8/2014)


    rodjkidd (1/8/2014)


    Weather update, as Grant has discovered it gets dark here very quickly, that and the rain and wind seems to be the...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How to seperate and display the max value and neglect the lowest value?

    ;WITH a (bill_no,cust_det,product,Price,bill_date,rowid)

    AS (SELECT bill_no,cust_det,product,Price,bill_date,ROW_NUMBER() OVER (PARTITION BY bill_no ORDER BY price DESC) FROM Bill_max)

    SELECT bill_no,cust_det,product,Price,bill_date

    FROM a

    WHERE rowid = 1

    ORDER BY bill_no ASC

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: False Error 8152 / String or binary data would be truncated

    I would concur with MM it could be the trigger.

    Can you post the full code for the trigger?

    Depending on what the trigger does, running the code in query window may...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 841 through 855 (of 3,544 total)