Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)

  • RE: How to detect blocking immediately

    use master

    create proc sp_who3

    as begin

    select 'dbcc inputbuffer('+convert(varchar(10),spid)+')' as inputbuffer,waittime/(1000*60) as minutes, *

    from(select * from master.dbo.sysprocesses

    where blocked > 0

    union

    select * from master.dbo.sysprocesses

    where spid in (select blocked from master.dbo.sysprocesses

    where blocked >...

  • RE: COPYING TABLE FROM ONE DATABASE TO ANOTHER DB

    apply the linked server and use select * into or use open query example:

    select * from openquery(servername,'select * from databasename.dbo.tablename(nolock) )

Viewing 2 posts - 1 through 2 (of 2 total)