Sep 1, 2004 #1 kmsam2 Programmer Joined May 21, 2003 Messages 29 Location MY any idea how to insert sp_who value into a table? Sam.
Sep 1, 2004 #2 vongrunt Programmer Joined Mar 8, 2004 Messages 4,863 Location HR Yup... if table structure matches response: Code: create table #blah ( spid smallint, ecid smallint, status nchar(30), loginame nchar(128), hostname nchar(128), blk char(5), dbname nchar(128), cmd nchar(16) ) [b]insert into #blah exec sp_who[/b] select * from #blah drop table #blah Upvote 0 Downvote
Yup... if table structure matches response: Code: create table #blah ( spid smallint, ecid smallint, status nchar(30), loginame nchar(128), hostname nchar(128), blk char(5), dbname nchar(128), cmd nchar(16) ) [b]insert into #blah exec sp_who[/b] select * from #blah drop table #blah