Forum Replies Created

Viewing 15 posts - 826 through 840 (of 3,232 total)

  • RE: Merge Inputs Several Rows but no Output

    Why is the OLE DB (command or destination) turning green before the (prior step) merge has finished merging?

    Good question. I would not expect this to happen. Are...

    John Rowan

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

  • RE: Inserting Next Row

    It looks like you've added to it. You don't need to VALUES clause. You are INSERTing the result set produced by the SELECT statement.

    Also, you have...

    John Rowan

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

  • RE: Inserting Next Row

    Right, but if you will be using the WBS1 column to tell the Sp which row to copy over to your Projects_AssociatedContracts table, you only need one input parameter and...

    John Rowan

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

  • RE: Inserting Next Row

    If the WBS1 value uniquely identifies which row you want to copy to your destination table, your SP would look more like this:

    CREATE PROCEDURE dbo.insert_AssociatedContracts

    @WBS1 varchar(30)

    AS

    INSERT INTO [dbo].[Projects_AssociatedContracts] (

    [WBS1],

    [WBS2],

    [WBS3],

    [custProjectName],

    [custProjectManager],

    [custStartDate],

    [custEndDate],

    [custJobValue]

    )

    SELECT PR.WBS1,...

    John Rowan

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

  • RE: Inserting Next Row

    Just to clarify, I was not saying that you needed to use them, I was just raising the question as to whether they should be used or not. Using...

    John Rowan

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

  • RE: filter data from two tables

    No problem, glad to help.

    John Rowan

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

  • RE: Inserting Next Row

    The input parameters are the values declared in your CREATE PROCEDURE statement beginning with @.

    CREATE PROCEDURE dbo.insert_AssociatedContracts

    @WBS1 varchar(30)

    @WBS2 varchar(7)

    @WBS3 varchar (7)

    @Name varchar (40)

    @ProjectMgr varchar (20)

    @StartDate datetime

    @EndDate datetime

    @Firmcost decimal(19,4)

    So...

    John Rowan

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

  • RE: filter data from two tables

    This is still a simple LEFT OUTER JOIN, you just need to change the JOIN criteria to include the whole primary key.

    SELECT a.*

    FROM @tableA a

    LEFT JOIN @tableB b

    ON a.dealerid =...

    John Rowan

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

  • RE: Inserting Next Row

    No problem.

    How about those extra input parameters on your stored procedure, are you planning on using them? If not, you can get rid of them as it...

    John Rowan

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

  • RE: Export to flat file errors - XML Data Type

    Huh, sounds wierd. You should be able to use the data conversion transformation for this. I'm not saying your wrong and I believe you are getting erros, I'm...

    John Rowan

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

  • RE: Inserting Next Row

    My post was not the complete stored procecure. You'll want to take that code and put it in your CREATE PROCEDURE statement in place of what you have between...

    John Rowan

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

  • RE: Merge Inputs Several Rows but no Output

    If you are just trying to insert a row if it does not exist, why not use a lookup transformation? If your row has a unique key available, this...

    John Rowan

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

  • RE: other than identity option

    You could use an integer column with the IDENTITY set on it and have it begin at 1000. Then create a computed column that takes the value 'P' and...

    John Rowan

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

  • RE: Can we use loop to get one record/data from a table at a time?

    Yes, a loop or cursor will allow you to get one row at a time, but there are very few instances where this is needed. The vast majority of...

    John Rowan

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

  • RE: Inserting Next Row

    No, in fact this SP should not even run. If you create and run this SP, do you get errors? You should. This should be closer to...

    John Rowan

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

Viewing 15 posts - 826 through 840 (of 3,232 total)