Forum Replies Created

Viewing 15 posts - 151 through 165 (of 3,232 total)

  • RE: SSIS - Export Flat File as CSV with padded spaces

    So, just for giggles, what is going to consume this file? It seems odd that you have to delimit the file AND make the columns fixed length.

    So...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Invalid character value for cast specification

    Number(38) is much larger than integer and I don't think they play nice together with implicit conversions. The error looks like it's happening on your destination component so I'm...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: t-sql 2012 insert foreign key value into primary table

    Alright, here's an example of an OUTPUT clause on your previous INSERT statement. All this does is take the values that you are inserting, along with the auto-generated IDENTITY...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: easy, very easy to answer

    I agree with Sean here that the use of TEXT datatype is not good here. Since they are using Text, Sean's query still will not work. You'll have...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Incemental Load and Full Fresh Load Both

    Couple questions....

    First, is there some sort of key value that you are able to use in your target system to determine where to pick up in source? In other...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: t-sql 2012 insert foreign key value into primary table

    Judging from your INSERT statement, you've got some data coming in from somewhere and getting loaded into InputTable. Can you give us the DDL for that table as well...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Selecting from a dynamic table name

    I'm still not a fan of dynamic procedures with variable table names. You may consider writing the procedure for each table that it will run against and having the...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Generate Invoice Document from SQL

    I've done this before where I took an existing mail merge process that needed to be data driven and automated. You can use a Script Transformation and interact with...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Selecting records from Table2 while counting records in Table1

    OK, so if you only want to pull matching rows, that would change the solution to an INNER JOIN.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Selecting records from Table2 while counting records in Table1

    I need it to show at the final as

    Group Name Category Dimension

    123 Test 123 888

    456 Test1 123 888

    789 Test2 345 777

    My code brings you the exact results that you...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Selecting records from Table2 while counting records in Table1

    The only thing we're really missing here is that your example result set does not show any items from Table1. So joining into Table1 is actually pointless. Can...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Selecting records from Table2 while counting records in Table1

    Looks like a pretty simple LEFT JOIN to me....

    DECLARE @Table1 TABLE (Groupid varchar(10), UserName varchar(10) , Category int, Dimension int)

    INSERT INTO @Table1

    SELECT 'AAA', 'Jon', 123, 888

    UNION ALL

    SELECT 'BBB', 'Jon', 345,...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Selecting records from Table2 while counting records in Table1

    OK, we're close....can you show me, using the sample data you've provided, what the results should look like?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Pivot Tables v Reports

    I would suggest that you consider using SSAS. Developing a cube for your data gives you the control over how the data is put together and how the metrics...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Selecting records from Table2 while counting records in Table1

    Can you give us an example of what you want your dataset to look like? Maybe some sample data?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 151 through 165 (of 3,232 total)