Forum Replies Created

Viewing 6 posts - 16 through 21 (of 21 total)

  • RE: Inserting Value into table from stored procedure

    Bitbucket,

    Those are simple inserts I was doing something a little bit different here...

    INSERT INTO #Answers(Answer)

    EXEC @Procedure @Parameter

    This does work but it only inserts one column. I would like to insert...

  • RE: Sending an email with multiple variables

    Perfect, thanks Lowell

  • RE: Inserting Top 1 Record

    Many thanks Gianluca and Chris, it is working just like expected. 😀

  • RE: Inserting Top 1 Record

    Gianluca,

    Almost there, unfortunately we are not on SQL 2005 yet so ROW_NUMBER() doesn't work.. :(. is there an equivalent to this for 2000???

  • RE: Inserting Top 1 Record

    Gianluca, yes and I get this error on the first insert..

    Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

    **EDIT** I posted...

  • RE: Inserting Top 1 Record

    Gianluca, I tried your approach, and it is still giving me the dupes, so here are my tables and sample data.

    CREATE TABLE [dbo].[InventoryStage](

    [SerialNumber] [varchar](20) NULL,

    [TagNumber] [varchar](8) NULL,

    [UnitCode] [varchar](7) NULL,

    [ItemNumber] [varchar](6)...

Viewing 6 posts - 16 through 21 (of 21 total)