Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
PoojaJ
Starting Member
10 Posts |
Posted - 2007-02-01 : 06:09:54
|
| Hello All,I need to find out which user are connected to a What database. For this I can Use SP_WHo. But How can i fetch the required fields only dat too in Query AnalyzerThank you in advance |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-02-01 : 07:07:52
|
[code]create table #who( spid int, ecid int, status varchar(100), loginame varchar(100), hostname varchar(100), blk int, dbname varchar(100), cmd varchar(100))insert into #who exec sp_whoselect * from #who[/code] KH |
 |
|
|
|
|
|