Skip to main content

Dave

Member since Oct 26, 2010

Recent Blog Comments By Dave

  • Getting @@RowCount After SQL INSERT INTO Statement

    Posted on Oct 27, 2010 at 7:53 AM

    Hi Ben, The output would be like this: Row 1: 2, OldName, Desc., Dept., 1 Row 2: 2, OldName, Desc., Dept., 2 Row 3: 2, OldName, Desc., Dept., 3 Row 4: 2, OldName, Desc., Dept., 4 So the Sql statement will process the records from LLEntry table. And each time it processes a record, I want it t... read more »

  • Getting @@RowCount After SQL INSERT INTO Statement

    Posted on Oct 26, 2010 at 4:01 PM

    Hi, I'm trying to figure out how to insert the row count as a value. For example: insert into TempImport (Code, OldName, Description, Def, NewName) Select '2', Name, Description, 'Department', (@@RowCount) from LLEntry where LLEntryID > '0' and LLDefID = '4' I'm trying to use the RowCount for ... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel