in

SQL Server Blogs

Voices from the UK SQL Server Community
All Tags » T-sql » rowcount (RSS)

Browse by Tags

  • Beware of the Usage of SET ROWCOUNT

    This is used to set the number of rows affected for DML Declare @test table ( number int ) set rowcount 1 insert into @test select 11 union all select 10 set rowcount 0 select number from @test The above inserts only one row to the table variable @test But beware that this wont be supported in Future...
    Posted to Madhivanan (Weblog) by Madhivanan on Wed, Mar 4 2009
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems